Rename "User's Guide" to "Command Guide" to be consistent with current scheme.
[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.3 --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