Adjust 'after' so that it tries more rigorously to parse the input
[sgt/utils] / nntpid / 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: nntpid.1
14man: nntpid.1
15progs:;
16
17%.1: %.but
18 halibut --man=$@ $<
19
20clean:
21 rm -f *.1 *.html *.tar.gz
22
23html:
24 halibut --html=nntpid.html nntpid.but
25 mv nntpid.html $(DESTDIR)
26
27release: nntpid.1
28 mkdir -p reltmp/nntpid
29 ln -s ../../nntpid reltmp/nntpid
30 ln -s ../../nntpid.1 reltmp/nntpid
31 ln -s ../../nntpid.but reltmp/nntpid
32 ln -s ../../Makefile reltmp/nntpid
33 tar -C reltmp -chzf $(DESTDIR)/nntpid.tar.gz nntpid
34 rm -rf reltmp
35
36install: install-progs install-man
37install-progs:
38 mkdir -p $(SCRIPTDIR)
39 $(INSTALL) $(IPROG) nntpid $(SCRIPTDIR)/nntpid
40install-man: nntpid.1
41 mkdir -p $(MANDIR)
42 $(INSTALL) $(IDATA) nntpid.1 $(MANDIR)/nntpid.1