e6cd3ea79da5d0aa1605e46240306d840cdbd3d7
[oota-llvm.git] / docs / CommandGuide / Makefile
1 POD = $(wildcard *.pod)
2 HTML = $(patsubst %.pod, html/%.html, $(POD))
3 MAN = $(patsubst %.pod, man/man1/%.1, $(POD))
4 PS = $(patsubst %.pod, ps/%.ps, $(POD))
5
6 all: $(HTML) $(MAN) $(PS)
7
8 .SUFFIXES:
9 .SUFFIXES: .html .pod .1 .ps
10
11 html/%.html: %.pod
12         pod2html --css=manpage.css --htmlroot=. \
13                 --podpath=. --noindex --infile=$< --outfile=$@
14
15 man/man1/%.1: %.pod
16         pod2man --release=1.4 --center="LLVM Command Guide" $< $@
17
18 ps/%.ps: man/man1/%.1
19         groff -Tps -man $< > $@
20
21 clean:
22         rm -f pod2htm*.*~~ $(HTML) $(MAN) $(PS)
23