Adjust 'after' so that it tries more rigorously to parse the input
[sgt/utils] / multi / Makefile
... / ...
CommitLineData
1# for `make release' and `make html'
2DESTDIR = .
3
4# for `make install'
5PREFIX = /usr/local
6BINDIR = $(PREFIX)/bin
7SCRIPTDIR = $(PREFIX)/bin
8MANDIR = $(PREFIX)/man/man1
9INSTALL = install
10IPROG =# flags for installing programs (default none)
11IDATA = -m 0644 # flags for installing data
12
13all: multi.1
14man: multi.1
15progs:;
16
17%.1: %.but
18 halibut --man=$@ $<
19
20clean:
21 rm -f *.1 *.html *.tar.gz
22
23html:
24 halibut --html=multi.html multi.but
25 mv multi.html $(DESTDIR)
26
27release: multi.1
28 mkdir -p reltmp/multi
29 ln -s ../../multi reltmp/multi
30 ln -s ../../multi.1 reltmp/multi
31 ln -s ../../multi.but reltmp/multi
32 ln -s ../../Makefile reltmp/multi
33 tar -C reltmp -chzf $(DESTDIR)/multi.tar.gz multi
34 rm -rf reltmp
35
36install: install-progs install-man
37install-progs:
38 mkdir -p $(SCRIPTDIR)
39 $(INSTALL) $(IPROG) multi $(SCRIPTDIR)/multi
40install-man: multi.1
41 mkdir -p $(MANDIR)
42 $(INSTALL) $(IDATA) multi.1 $(MANDIR)/multi.1