From 83b20bee29dac587d83bd7ace62c6b84022109d2 Mon Sep 17 00:00:00 2001 From: Fumitoshi UKAI Date: Wed, 21 Nov 2001 09:21:59 +0000 Subject: [w3m-dev 02470] Hironori Sakamoto --- scripts/multipart/Makefile | 28 +++++++++++++++++----------- scripts/multipart/README | 2 +- 2 files changed, 18 insertions(+), 12 deletions(-) (limited to 'scripts/multipart') diff --git a/scripts/multipart/Makefile b/scripts/multipart/Makefile index 8f77b16..d3510e9 100644 --- a/scripts/multipart/Makefile +++ b/scripts/multipart/Makefile @@ -1,27 +1,33 @@ prefix = /usr/local -bindir = $(prefix)/bin -libdir = $(prefix)/lib +DESTDIR = +BIN_DIR = $(prefix)/bin +LIB_DIR = $(prefix)/lib/w3m distdir = ./distfiles -W3M_LIBDIR = $(libdir)/w3m +LIB_TARGETS = multipart.cgi INSTALL = install -c INSTALL_SCRIPT = $(INSTALL) -m 755 PERL = /usr/local/bin/perl -NKF = /usr/local/bin/nkf +NKF = nkf -all: multipart.cgi +.SUFFIXES: .in -multipart.cgi: multipart.cgi.in Makefile +all: $(LIB_TARGETS) + +.in: sed -e 's%@PERL@%$(PERL)%g' \ -e 's%@NKF@%$(NKF)%g' \ - multipart.cgi.in > multipart.cgi - chmod +x multipart.cgi - -install: multipart.cgi - $(INSTALL_SCRIPT) multipart.cgi $(W3M_LIBDIR) + $< > $@ + chmod +x $@ + +install: $(LIB_TARGETS) + for file in $(LIB_TARGETS); \ + do \ + $(INSTALL_SCRIPT) $$file $(DISTDIR)$(LIB_DIR); \ + done dist: all @-rm -fr $(distdir)/multipart diff --git a/scripts/multipart/README b/scripts/multipart/README index 54df29a..b82f585 100644 --- a/scripts/multipart/README +++ b/scripts/multipart/README @@ -7,7 +7,7 @@ Content-Type: multipart/* インストール * make install - 必要なら PERL, NKF, W3M_LIBDIR を設定してください。 + 必要なら PERL, NKF, LIBDIR を設定してください。 * mailcap を ~/.w3m/mailcap にマージ multipart.cgi のパスに注意 -- cgit v1.2.3