From 32388937884a92e30a378b1edba1a89d861621b0 Mon Sep 17 00:00:00 2001 From: Fumitoshi UKAI Date: Tue, 19 Mar 2002 16:27:20 +0000 Subject: [w3m-dev 03137] Re: w3mman.1 * XMakefile (MAN1): added (MAN1_JA): added (install-core): install man (install-scripts): pass MAN_DIR (uninstall): uninstall man, pass MAN_DIR to subdirs * config.h.dist (MAN_DIR): added (MAN1_DIR): added (MAN1_JA_DIR): added * configure: -mandir (config.h): add MAN_DIR, MAN1_DIR, MAN1_JA_DIR * scripts/w3mman/Makefile (MAN1_DIR): added From: Hironori Sakamoto --- scripts/w3mman/Makefile | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'scripts') diff --git a/scripts/w3mman/Makefile b/scripts/w3mman/Makefile index 8adf5dd..a95f113 100644 --- a/scripts/w3mman/Makefile +++ b/scripts/w3mman/Makefile @@ -3,6 +3,7 @@ prefix = /usr/local BIN_DIR = $(prefix)/bin LIB_DIR = $(prefix)/lib/w3m MAN_DIR = $(prefix)/man +MAN1_DIR = $(MAN_DIR)/man1 DESTDIR = distdir = ./distfiles @@ -36,6 +37,7 @@ all: $(TARGETS) $(LIB_TARGETS) $(MAN_TARGETS) install: $(TARGETS) $(LIB_TARGETS) $(MAN_TARGETS) -$(MKDIR) $(DESTDIR)$(BIN_DIR) -$(MKDIR) $(DESTDIR)$(LIB_DIR) + -$(MKDIR) $(DESTDIR)$(MAN1_DIR) for file in $(TARGETS); \ do \ $(INSTALL_SCRIPT) $$file $(DESTDIR)$(BIN_DIR); \ @@ -46,7 +48,7 @@ install: $(TARGETS) $(LIB_TARGETS) $(MAN_TARGETS) done for file in $(MAN1_TARGETS); \ do \ - $(INSTALL_MAN) $$file $(DESTDIR)$(MAN_DIR)/man1; \ + $(INSTALL_MAN) $$file $(DESTDIR)$(MAN1_DIR); \ done uninstall: @@ -58,9 +60,9 @@ uninstall: do \ rm -f $(LIB_DIR)/$$file; \ done - -for file in $(MAN_TARGETS); \ + -for file in $(MAN1_TARGETS); \ do \ - rm -f $(MAN_DIR)/$$file; \ + rm -f $(MAN1_DIR)/$$file; \ done clean: -- cgit v1.2.3