blob: 363d9f2211e519ab9987f25ebadf3611969f453f [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
Misha Brukman93763c32004-05-14 20:29:11 +000016 pod2man --release=1.3 --center="LLVM Command Guide" $< $@
Brian Gaekee993d202004-05-14 19:50:33 +000017
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