aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/Makefile
blob: b1d304a1c377b62d725548fc39a32a5586a1b2b8 (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
prefix		= /usr/local
DESTDIR		=
BIN_DIR		= $(prefix)/bin
LIB_DIR		= $(prefix)/lib/w3m

LIB_TARGETS	= dirlist.cgi

INSTALL		= install -c
INSTALL_SCRIPT	= $(INSTALL) -m 755

PERL		= /usr/local/bin/perl

.SUFFIXES: .in

all: $(LIB_TARGETS)

.in:
	sed 's%@PERL@%$(PERL)%' $< > $@
	chmod +x $@

install: $(LIB_TARGETS)
	for file in $(LIB_TARGETS);     \
	do      \
		$(INSTALL_SCRIPT) $$file $(DISTDIR)$(LIB_DIR);  \
	done

clean:
	rm -f $(LIB_TARGETS)