diff options
author | Fumitoshi UKAI <ukai@debian.or.jp> | 2001-12-04 16:17:07 +0000 |
---|---|---|
committer | Fumitoshi UKAI <ukai@debian.or.jp> | 2001-12-04 16:17:07 +0000 |
commit | 62e5d0c62fc0d22f1e172792e74d9ef6a8ed411c (patch) | |
tree | 454db9e8a106dcbacfaeec8cf892baaa0b7df316 /scripts/Makefile | |
parent | [w3m-dev 02611] a improvement of find_cookie() (diff) | |
download | w3m-62e5d0c62fc0d22f1e172792e74d9ef6a8ed411c.tar.gz w3m-62e5d0c62fc0d22f1e172792e74d9ef6a8ed411c.zip |
[w3m-dev 02614] cleanup Makefiles
From: Hironori Sakamoto <hsaka@mth.biglobe.ne.jp>
Diffstat (limited to '')
-rw-r--r-- | scripts/Makefile | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/scripts/Makefile b/scripts/Makefile index 1f055ea..4be82c5 100644 --- a/scripts/Makefile +++ b/scripts/Makefile @@ -7,8 +7,10 @@ HELP_DIR = $(prefix)/lib/w3m LIB_TARGETS = dirlist.cgi w3mhelp.cgi +MKDIR = mkdir -p INSTALL = install -c INSTALL_SCRIPT = $(INSTALL) -m 755 +INSTALL_DATA = $(INSTALL) -m 644 PERL = /usr/local/bin/perl @@ -58,14 +60,26 @@ helplibs: @echo done install: $(LIB_TARGETS) + -$(MKDIR) $(DESTDIR)$(LIB_DIR) + -$(MKDIR) $(DESTDIR)$(HELP_DIR) for file in $(LIB_TARGETS); \ do \ $(INSTALL_SCRIPT) $$file $(DESTDIR)$(LIB_DIR); \ done for file in w3mhelp-*.pl; \ do \ - $(INSTALL) $$file $(DESTDIR)$(HELP_DIR); \ + $(INSTALL_DATA) $$file $(DESTDIR)$(HELP_DIR); \ + done + +uninstall: + -for file in $(LIB_TARGETS); \ + do \ + rm -f $(LIB_DIR)/$$file; \ + done + -for file in w3mhelp-*.pl; \ + do \ + rm -f $(HELP_DIR)/$$file; \ done clean: - rm -f $(LIB_TARGETS) w3mhelp-*.pl + -rm -f $(LIB_TARGETS) w3mhelp-*.pl |