The examples section is confusing at the best of times, and really
[sgt/utils] / multi / Makefile
CommitLineData
1166ff62 1# for `make release' and `make html'
8a48d402 2DESTDIR = .
3
1166ff62 4# for `make install'
5PREFIX = /usr/local
6BINDIR = $(PREFIX)/bin
c51c76d1 7SCRIPTDIR = $(PREFIX)/bin
1166ff62 8MANDIR = $(PREFIX)/man/man1
f6cacff9 9INSTALL = install
10IPROG =# flags for installing programs (default none)
11IDATA = -m 0644 # flags for installing data
1166ff62 12
29efe1b9 13all: multi.1
14
15%.1: %.but
16 halibut --man=$@ $<
17
18clean:
8a48d402 19 rm -f *.1 *.html *.tar.gz
20
21html:
22 halibut --html=$(DESTDIR)/multi.html multi.but
23
24release: multi.1
25 mkdir -p reltmp/multi
26 ln -s ../../multi reltmp/multi
27 ln -s ../../multi.1 reltmp/multi
28 ln -s ../../multi.but reltmp/multi
29 ln -s ../../Makefile reltmp/multi
ef397e72 30 tar -C reltmp -chzf $(DESTDIR)/multi.tar.gz multi
8a48d402 31 rm -rf reltmp
1166ff62 32
33install: multi.1
c51c76d1 34 mkdir -p $(SCRIPTDIR)
35 $(INSTALL) $(IPROG) multi $(SCRIPTDIR)/multi
1166ff62 36 mkdir -p $(MANDIR)
f6cacff9 37 $(INSTALL) $(IDATA) multi.1 $(MANDIR)/multi.1