aboutsummaryrefslogtreecommitdiffstats
path: root/XMakefile
diff options
context:
space:
mode:
authorFumitoshi UKAI <ukai@debian.or.jp>2001-11-21 09:21:59 +0000
committerFumitoshi UKAI <ukai@debian.or.jp>2001-11-21 09:21:59 +0000
commit83b20bee29dac587d83bd7ace62c6b84022109d2 (patch)
tree8c3ac9bc8bf27b257628d8a32b6dcdddab6ff176 /XMakefile
parent[w3m-dev 02472] cleanup CYGWIN macro (diff)
downloadw3m-83b20bee29dac587d83bd7ace62c6b84022109d2.tar.gz
w3m-83b20bee29dac587d83bd7ace62c6b84022109d2.zip
[w3m-dev 02470]
Hironori Sakamoto <hsaka@mth.biglobe.ne.jp>
Diffstat (limited to 'XMakefile')
-rw-r--r--XMakefile21
1 files changed, 17 insertions, 4 deletions
diff --git a/XMakefile b/XMakefile
index 7a095ac..61f1ca5 100644
--- a/XMakefile
+++ b/XMakefile
@@ -1,4 +1,4 @@
-# $Id: XMakefile,v 1.7 2001/11/20 17:49:23 ukai Exp $
+# $Id: XMakefile,v 1.8 2001/11/21 09:21:59 ukai Exp $
SRCS=main.c file.c buffer.c display.c etc.c search.c linein.c table.c local.c \
form.c map.c frame.c rc.c menu.c mailcap.c\
func.c cookie.c history.c backend.c $(KEYBIND_SRC)
@@ -30,7 +30,7 @@ INSTALL=sh install.sh
INSTALL2=sh ../install.sh
AR=ar
-all: $(TARGETS)
+all: $(TARGETS) all-scripts
$(TARGET): $(ALLOBJS) $(ALIB) $(GCTARGET)
$(CC) $(CFLAGS) -o $(TARGET) $(ALLOBJS) $(LIBS)
@@ -77,9 +77,10 @@ inflate.o: inflate.c
$(CC) $(CFLAGS) $(Z_CFLAGS) -c inflate.c
gc/gc.a:
- cd gc; make CC='$(CC)' CFLAGS='$(GCCFLAGS) $(GC_CFLAGS)' SPECIALCFLAGS='-I./\$(srcdir)/include $(GC_CFLAGS)'
+ cd gc; $(MAKE) CC='$(CC)' CFLAGS='$(GCCFLAGS) $(GC_CFLAGS)' SPECIALCFLAGS='-I./\$(srcdir)/include $(GC_CFLAGS)'
-install: $(TARGETS)
+
+install: $(TARGETS) all-scripts
-$(MKDIR) $(DESTDIR)$(BIN_DIR)
-$(MKDIR) $(DESTDIR)$(HELP_DIR)
-$(MKDIR) $(DESTDIR)$(LIB_DIR)
@@ -92,6 +93,18 @@ install: $(TARGETS)
for d in $(EXT_TARGETS); do $(INSTALL) -m 755 $$d $(DESTDIR)$(LIB_DIR)/$$d; done
(cd scripts; for i in *.cgi; do $(INSTALL2) -m 755 $$i $(DESTDIR)$(LIB_DIR)/$$i; done)
+all-scripts:
+ for dir in scripts scripts/multipart scripts/w3mman; \
+ do \
+ (cd $$dir; $(MAKE) PERL='$(PERL)' BIN_DIR='$(BIN_DIR)' LIB_DIR='$(LIB_DIR)'); \
+ done
+
+install-scripts:
+ for dir in scripts scripts/multipart scripts/w3mman; \
+ do \
+ (cd $$dir; $(MAKE) PERL='$(PERL)' BIN_DIR='$(BIN_DIR)' LIB_DIR='$(LIB_DIR)' DESTDIR='$(DESTDIR)' INSTALL='sh $(PWD)/install.sh' install); \
+ done
+
uninstall:
-$(RM) $(BIN_DIR)/$(TARGET)
-$(RM) $(HELP_DIR)/w3mhelp-lynx_en.html