2000-01-30 16:23:57 +00:00
|
|
|
--- XMakefile.orig Fri Jan 28 08:38:16 2000
|
|
|
|
+++ XMakefile Fri Jan 28 18:55:34 2000
|
|
|
|
@@ -18,14 +18,14 @@
|
1999-11-14 02:02:07 +00:00
|
|
|
|
1999-10-11 19:00:30 +00:00
|
|
|
INCLUDES=-I.
|
|
|
|
|
1999-11-14 02:02:07 +00:00
|
|
|
-DEFS=$(INCLUDES) #-DSTR_DEBUG # -DDEBUG
|
1999-10-11 19:00:30 +00:00
|
|
|
-CFLAGS=$(MYCFLAGS) $(DEFS)
|
2000-01-30 16:23:57 +00:00
|
|
|
-LIBS=-L. -lindep $(GCLIB) -lm $(LOCAL_LIBRARIES) $(SYS_LIBRARIES)
|
1999-11-14 02:02:07 +00:00
|
|
|
+DEFS+=$(INCLUDES) #-DSTR_DEBUG # -DDEBUG
|
1999-10-11 19:00:30 +00:00
|
|
|
+CFLAGS+=$(MYCFLAGS) $(DEFS)
|
2000-01-30 16:23:57 +00:00
|
|
|
+LIBS+=-L. -lindep -lgc -lm $(LOCAL_LIBRARIES) $(SYS_LIBRARIES)
|
1999-11-14 02:02:07 +00:00
|
|
|
INSTALL=sh install.sh
|
1999-10-11 19:00:30 +00:00
|
|
|
|
1999-12-07 16:41:54 +00:00
|
|
|
all: $(TARGETS)
|
|
|
|
|
|
|
|
-$(TARGET): $(ALLOBJS) $(ALIB) $(GCTARGET)
|
|
|
|
+$(TARGET): $(ALLOBJS) $(ALIB)
|
|
|
|
$(CC) $(CFLAGS) -o $(TARGET) $(ALLOBJS) $(LIBS)
|
|
|
|
|
|
|
|
$(ALIB): $(ALIBOBJS)
|
2000-01-30 16:23:57 +00:00
|
|
|
@@ -66,23 +66,24 @@
|
1999-12-07 16:41:54 +00:00
|
|
|
install: $(TARGETS)
|
2000-01-30 16:23:57 +00:00
|
|
|
-$(MKDIR) $(DESTDIR)$(BIN_DIR)
|
|
|
|
-$(MKDIR) $(DESTDIR)$(HELP_DIR)
|
|
|
|
+ -$(MKDIR) $(DESTDIR)$(HELP_DIR_JA)
|
|
|
|
-$(MKDIR) $(DESTDIR)$(LIB_DIR)
|
1999-12-07 16:41:54 +00:00
|
|
|
- $(INSTALL) -m 755 $(TARGET) $(DESTDIR)$(BIN_DIR)/$(TARGET)
|
|
|
|
- $(INSTALL) -m 644 w3mhelp_en.html $(DESTDIR)$(HELP_DIR)/w3mhelp_en.html
|
|
|
|
- $(INSTALL) -m 644 w3mhelp_ja.html $(DESTDIR)$(HELP_DIR)/w3mhelp_ja.html
|
|
|
|
- $(INSTALL) -m 644 w3mhelp-lynx_en.html $(DESTDIR)$(HELP_DIR)/w3mhelp-lynx_en.html
|
|
|
|
- $(INSTALL) -m 644 w3mhelp-lynx_ja.html $(DESTDIR)$(HELP_DIR)/w3mhelp-lynx_ja.html
|
1999-11-14 02:02:07 +00:00
|
|
|
- $(INSTALL) -m 644 $(HELP_FILE) $(DESTDIR)$(HELP_DIR)/w3mhelp.html
|
2000-01-30 16:23:57 +00:00
|
|
|
- for d in $(BOOKMARKER) $(HELPER); do $(INSTALL) -m 755 $$d $(DESTDIR)$(LIB_DIR)/$$d; done
|
|
|
|
- (cd scripts; ln -s ../install.sh .; for i in *.cgi; do $(INSTALL) -m 755 $$i $(DESTDIR)$(LIB_DIR)/$$i; done)
|
1999-12-07 16:41:54 +00:00
|
|
|
+ $(BSD_INSTALL_PROGRAM) -m 755 $(TARGET) $(DESTDIR)$(BIN_DIR)/$(TARGET)
|
|
|
|
+ $(BSD_INSTALL_DATA) -m 644 w3mhelp_en.html $(DESTDIR)$(HELP_DIR)/w3mhelp_en.html
|
|
|
|
+ $(BSD_INSTALL_DATA) -m 644 w3mhelp_ja.html $(DESTDIR)$(HELP_DIR_JA)/w3mhelp_ja.html
|
|
|
|
+ $(BSD_INSTALL_DATA) -m 644 w3mhelp-lynx_en.html $(DESTDIR)$(HELP_DIR)/w3mhelp-lynx_en.html
|
|
|
|
+ $(BSD_INSTALL_DATA) -m 644 w3mhelp-lynx_ja.html $(DESTDIR)$(HELP_DIR_JA)/w3mhelp-lynx_ja.html
|
2000-01-30 16:23:57 +00:00
|
|
|
+ for d in $(BOOKMARKER) $(HELPER); do $(BSD_INSTALL_PROGRAM) -m 755 $$d $(DESTDIR)$(LIB_DIR)/$$d; done
|
|
|
|
+ (cd scripts; for i in *.cgi; do $(BSD_INSTALL_SCRIPT) -m 755 $$i $(DESTDIR)$(LIB_DIR)/$$i; done)
|
1999-11-14 02:02:07 +00:00
|
|
|
|
|
|
|
uninstall:
|
|
|
|
-$(RM) $(BIN_DIR)/$(TARGET)
|
|
|
|
-$(RM) $(HELP_DIR)/w3mhelp-lynx_en.html
|
|
|
|
- -$(RM) $(HELP_DIR)/w3mhelp-lynx_ja.html
|
|
|
|
+ -$(RM) $(HELP_DIR_JA)/w3mhelp-lynx_ja.html
|
|
|
|
-$(RM) $(HELP_DIR)/w3mhelp_en.html
|
|
|
|
- -$(RM) $(HELP_DIR)/w3mhelp_ja.html
|
2000-01-30 16:23:57 +00:00
|
|
|
- -$(RM) $(HELP_DIR)/w3mhelp.html
|
1999-11-14 02:02:07 +00:00
|
|
|
+ -$(RM) $(HELP_DIR_JA)/w3mhelp_ja.html
|
1999-12-07 16:41:54 +00:00
|
|
|
+ -$(RM) $(LIB_DIR)/$(BOOKMARKER)
|
2000-01-30 16:23:57 +00:00
|
|
|
+ -$(RM) $(LIB_DIR)/$(HELPER)
|
1999-11-14 02:02:07 +00:00
|
|
|
|
2000-01-30 16:23:57 +00:00
|
|
|
clean: sweep
|
|
|
|
rm -f *.o *.a $(TARGETS) mktable
|