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