blob: 8f2f9ce61cfca1145a4ca1f0234fb7a57409017b [file] [log] [blame]
Brian Gaekee993d202004-05-14 19:50:33 +00001POD = $(wildcard *.pod)
Misha Brukman9ff1a932004-05-14 20:24:59 +00002HTML = $(patsubst %.pod, html/%.html, $(POD))
3MAN = $(patsubst %.pod, man/man1/%.1, $(POD))
4PS = $(patsubst %.pod, ps/%.ps, $(POD))
Brian Gaekee993d202004-05-14 19:50:33 +00005
6all: $(HTML) $(MAN) $(PS)
7
8.SUFFIXES:
9.SUFFIXES: .html .pod .1 .ps
10
Misha Brukman9ff1a932004-05-14 20:24:59 +000011html/%.html: %.pod
12 pod2html --css=manpage.css --htmlroot=. \
13 --podpath=. --noindex --infile=$< --outfile=$@
Brian Gaekee993d202004-05-14 19:50:33 +000014
Misha Brukman9ff1a932004-05-14 20:24:59 +000015man/man1/%.1: %.pod
Brian Gaekee993d202004-05-14 19:50:33 +000016 pod2man --release=1.3 --center="LLVM User's Guide" $< $@
17
Misha Brukman9ff1a932004-05-14 20:24:59 +000018ps/%.ps: man/man1/%.1
Brian Gaekee993d202004-05-14 19:50:33 +000019 groff -Tps -man $< > $@
20
21clean:
22 rm -f pod2htm*.*~~ $(HTML) $(MAN) $(PS)
23