6820f933fe311a2ccd7a10f5358d571eb9adab95
[u/mdw/putty] / doc / Makefile
1 CHAPTERS := $(SITE) blurb intro gs using config pscp psftp plink pubkey
2 CHAPTERS += pageant errors faq feedback licence
3 CHAPTERS += index
4
5 INPUTS = $(patsubst %,%.but,$(CHAPTERS))
6
7 # This is temporary. Hack it locally or something.
8 HALIBUT = $(HOME)/src/halibut/build/halibut
9
10 all: man index.html
11
12 index.html: $(INPUTS)
13 $(HALIBUT) --text --html --winhelp $(INPUTS)
14
15 MKMAN = $(HALIBUT) --man=$@ mancfg.but $<
16 MANPAGES = putty.1 puttygen.1 plink.1 pscp.1 psftp.1 puttytel.1 pterm.1
17 man: $(MANPAGES)
18
19 putty.1: man-putt.but mancfg.but; $(MKMAN)
20 puttygen.1: man-pg.but mancfg.but; $(MKMAN)
21 plink.1: man-pl.but mancfg.but; $(MKMAN)
22 pscp.1: man-pscp.but mancfg.but; $(MKMAN)
23 psftp.1: man-psft.but mancfg.but; $(MKMAN)
24 puttytel.1: man-ptel.but mancfg.but; $(MKMAN)
25 pterm.1: man-pter.but mancfg.but; $(MKMAN)
26
27 clean:
28 rm -f *.html *.txt *.hlp *.cnt *.1