Reasonably grotty hacks so that the droppings left by the man page
[u/mdw/putty] / doc / Makefile
CommitLineData
78189bb3 1CHAPTERS := $(SITE) blurb intro gs using config pscp psftp plink pubkey
2CHAPTERS += pageant errors faq feedback licence
e5b0d077 3
4INPUTS = $(patsubst %,%.but,$(CHAPTERS))
5
6# This is temporary. Hack it locally or something.
5b68bbaf 7HALIBUT = $(HOME)/src/halibut/build/halibut
e5b0d077 8
d686cdbd 9DROPPINGS := output.txt output.hlp output.cnt output.1
10DROPPINGS += Contents.html IndexPage.html Chapter*.html Section*.html
11DROPPINGS += Appendix*.html
12
13all: man Contents.html
e3e5784e 14
e5b0d077 15Contents.html: $(INPUTS)
0a9bcf13 16 $(HALIBUT) $(INPUTS)
e5b0d077 17 rm -f index.html
18 ln -s Contents.html index.html
c0fc9801 19 mv output.txt puttydoc.txt
20 mv output.hlp putty.hlp
21 mv output.cnt putty.cnt
e86cf399 22
d686cdbd 23MKMAN = $(HALIBUT) mancfg.but $< && mv output.1 $@ && rm -f $(DROPPINGS)
e3e5784e 24MANPAGES = putty.1 puttygen.1 plink.1 pscp.1 psftp.1 puttytel.1 pterm.1
25man: $(MANPAGES)
26
27putty.1: man-putt.but mancfg.but; $(MKMAN)
28puttygen.1: man-pg.but mancfg.but; $(MKMAN)
29plink.1: man-pl.but mancfg.but; $(MKMAN)
30pscp.1: man-pscp.but mancfg.but; $(MKMAN)
31psftp.1: man-psft.but mancfg.but; $(MKMAN)
32puttytel.1: man-ptel.but mancfg.but; $(MKMAN)
33pterm.1: man-pter.but mancfg.but; $(MKMAN)
34
e86cf399 35clean:
e3e5784e 36 rm -f *.html *.txt *.hlp *.cnt *.1