blob: 730718b0a5e5ea4020bae1f773eb7274613dd19c [file] [log] [blame]
Brian Gaekee993d202004-05-14 19:50:33 +00001POD = $(wildcard *.pod)
2HTML = $(patsubst %.pod, %.html, $(POD))
3MAN = $(patsubst %.pod, %.1, $(POD))
4PS = $(patsubst %.pod, %.ps, $(POD))
5
6all: $(HTML) $(MAN) $(PS)
7
8.SUFFIXES:
9.SUFFIXES: .html .pod .1 .ps
10
11%.html: %.pod
12 pod2html --css=http://www.perldoc.com/css/perldoc.css \
13 --podpath=/`pwd` --noindex --infile=$< --outfile=$@
14
15%.1: %.pod
16 pod2man --release=1.3 --center="LLVM User's Guide" $< $@
17
18%.ps: %.1
19 groff -Tps -man $< > $@
20
21clean:
22 rm -f pod2htm*.*~~ $(HTML) $(MAN) $(PS)
23