aboutsummaryrefslogtreecommitdiffstats
path: root/XMakefile
diff options
context:
space:
mode:
authorFumitoshi UKAI <ukai@debian.or.jp>2001-11-21 09:42:23 +0000
committerFumitoshi UKAI <ukai@debian.or.jp>2001-11-21 09:42:23 +0000
commit16eaebf290222ac97b710d6baf88b2777a643372 (patch)
tree93b38700d7a6f37dc21aeef586cbd017b1ca1aa6 /XMakefile
parent[w3m-dev 02470] (diff)
downloadw3m-16eaebf290222ac97b710d6baf88b2777a643372.tar.gz
w3m-16eaebf290222ac97b710d6baf88b2777a643372.zip
[w3m-dev 02473] clean & install-scripts
From: Fumitoshi UKAI <ukai@debian.or.jp>
Diffstat (limited to '')
-rw-r--r--XMakefile15
1 files changed, 11 insertions, 4 deletions
diff --git a/XMakefile b/XMakefile
index 61f1ca5..a266792 100644
--- a/XMakefile
+++ b/XMakefile
@@ -1,4 +1,4 @@
-# $Id: XMakefile,v 1.8 2001/11/21 09:21:59 ukai Exp $
+# $Id: XMakefile,v 1.9 2001/11/21 09:42:23 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)
@@ -20,6 +20,9 @@ HELPER=w3mhelperpanel$(EXT)
INFLATE=inflate$(EXT)
TARGETS=$(TARGET) $(EXT_TARGETS)
+SCRIPTSUBDIRS = scripts scripts/multipart scripts/w3mman
+SUBDIRS = $(SCRIPTSUBDIRS)
+
INCLUDES=-I.
DEFS=$(INCLUDES) # -DDEBUG
@@ -94,13 +97,13 @@ install: $(TARGETS) all-scripts
(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; \
+ for dir in $(SCRIPTSUBDIRS); \
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; \
+install-scripts: all-scripts
+ for dir in $(SCRIPTSUBDIRS); \
do \
(cd $$dir; $(MAKE) PERL='$(PERL)' BIN_DIR='$(BIN_DIR)' LIB_DIR='$(LIB_DIR)' DESTDIR='$(DESTDIR)' INSTALL='sh $(PWD)/install.sh' install); \
done
@@ -119,6 +122,10 @@ uninstall:
clean: sweep
rm -f *.o *.a $(TARGETS) mktable$(EXT)
rm -f funcname.c funcname1.h funcname2.h tagtable.c
+ for dir in $(SCRIPTSUBDIRS); \
+ do \
+ (cd $$dir; $(MAKE) clean); \
+ done
sweep:
-rm -f core *~ *.bak *.orig *.rej