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/Makefile | |
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 'scripts/multipart/Makefile')
-rw-r--r-- | scripts/multipart/Makefile | 28 |
1 files changed, 17 insertions, 11 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 |