diff options
author | Fumitoshi UKAI <ukai@debian.or.jp> | 2001-11-21 09:21:59 +0000 |
---|---|---|
committer | Fumitoshi UKAI <ukai@debian.or.jp> | 2001-11-21 09:21:59 +0000 |
commit | 83b20bee29dac587d83bd7ace62c6b84022109d2 (patch) | |
tree | 8c3ac9bc8bf27b257628d8a32b6dcdddab6ff176 /scripts/multipart | |
parent | [w3m-dev 02472] cleanup CYGWIN macro (diff) | |
download | w3m-83b20bee29dac587d83bd7ace62c6b84022109d2.tar.gz w3m-83b20bee29dac587d83bd7ace62c6b84022109d2.zip |
[w3m-dev 02470]
Hironori Sakamoto <hsaka@mth.biglobe.ne.jp>
Diffstat (limited to '')
-rw-r--r-- | scripts/multipart/Makefile | 28 | ||||
-rw-r--r-- | scripts/multipart/README | 2 |
2 files changed, 18 insertions, 12 deletions
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/* を扱う local-CGI インストール * make install - 必要なら PERL, NKF, W3M_LIBDIR を設定してください。 + 必要なら PERL, NKF, LIBDIR を設定してください。 * mailcap を ~/.w3m/mailcap にマージ multipart.cgi のパスに注意 |