1 CHAPTERS
:= $(SITE
) blurb intro gs using config pscp psftp plink pubkey
2 CHAPTERS
+= pageant errors faq feedback licence
4 INPUTS
= $(patsubst %,%.but
,$(CHAPTERS
))
6 # This is temporary. Hack it locally or something.
7 HALIBUT
= $(HOME
)/src
/halibut
/build
/halibut
9 DROPPINGS
:= output.txt output.hlp output.cnt output
.1
10 DROPPINGS
+= Contents.html IndexPage.html Chapter
*.html Section
*.html
11 DROPPINGS
+= Appendix
*.html
13 all: man Contents.html
15 Contents.html
: $(INPUTS
)
18 ln
-s Contents.html index.html
19 mv output.txt puttydoc.txt
20 mv output.hlp putty.hlp
21 mv output.cnt putty.cnt
23 MKMAN
= $(HALIBUT
) mancfg.but
$< && mv output
.1 $@
&& rm -f
$(DROPPINGS
)
24 MANPAGES
= putty
.1 puttygen
.1 plink
.1 pscp
.1 psftp
.1 puttytel
.1 pterm
.1
27 putty
.1: man-putt.but mancfg.but
; $(MKMAN
)
28 puttygen
.1: man-pg.but mancfg.but
; $(MKMAN
)
29 plink
.1: man-pl.but mancfg.but
; $(MKMAN
)
30 pscp
.1: man-pscp.but mancfg.but
; $(MKMAN
)
31 psftp
.1: man-psft.but mancfg.but
; $(MKMAN
)
32 puttytel
.1: man-ptel.but mancfg.but
; $(MKMAN
)
33 pterm
.1: man-pter.but mancfg.but
; $(MKMAN
)
36 rm -f
*.html
*.txt
*.hlp
*.cnt
*.1