a4d3c848 |
1 | mandir=$(prefix)/man |
2 | man1dir=$(mandir)/man1 |
3 | |
c38da2b7 |
4 | CHAPTERS := $(SITE) blurb intro running input output licence manpage index |
11f2edfa |
5 | |
6 | INPUTS = $(patsubst %,%.but,$(CHAPTERS)) |
7 | |
8 | HALIBUT = ../build/halibut |
9 | |
0287083a |
10 | all: index.html halibut.1 |
11f2edfa |
11 | |
0287083a |
12 | index.html: $(INPUTS) $(HALIBUT) |
13 | $(HALIBUT) --text=halibut.txt --html --info=halibut.info \ |
14 | --ps=halibut.ps --pdf=halibut.pdf $(INPUTS) |
11f2edfa |
15 | |
c38da2b7 |
16 | halibut.1: manpage.but |
17 | $(HALIBUT) --man=halibut.1 manpage.but |
18 | |
a4d3c848 |
19 | install: |
20 | $(INSTALL) -m 644 halibut.1 $(man1dir)/halibut.1 |
21 | |
11f2edfa |
22 | clean: |
90f53379 |
23 | rm -f *.html *.txt *.hlp *.cnt *.1 *.info* *.ps *.pdf |