blob: 8f77b166e7592b53644d006c8709346f18607a8a (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
prefix = /usr/local
bindir = $(prefix)/bin
libdir = $(prefix)/lib
distdir = ./distfiles
W3M_LIBDIR = $(libdir)/w3m
INSTALL = install -c
INSTALL_SCRIPT = $(INSTALL) -m 755
PERL = /usr/local/bin/perl
NKF = /usr/local/bin/nkf
all: multipart.cgi
multipart.cgi: multipart.cgi.in Makefile
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)
dist: all
@-rm -fr $(distdir)/multipart
mkdir -p $(distdir)/multipart
cp Makefile README multipart.cgi multipart.cgi.in \
$(distdir)/multipart
( cd $(distdir); \
tar -cf - multipart | GZIP='' gzip ) \
> $(distdir)/multipart.tar.gz
-rm -fr $(distdir)/multipart
|