aboutsummaryrefslogtreecommitdiffstats
path: root/docs/CommandGuide/Makefile
blob: e6cd3ea79da5d0aa1605e46240306d840cdbd3d7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
POD = $(wildcard *.pod)
HTML = $(patsubst %.pod, html/%.html, $(POD))
MAN = $(patsubst %.pod, man/man1/%.1, $(POD))
PS = $(patsubst %.pod, ps/%.ps, $(POD))

all: $(HTML) $(MAN) $(PS)

.SUFFIXES:
.SUFFIXES: .html .pod .1 .ps

html/%.html: %.pod
	pod2html --css=manpage.css --htmlroot=. \
		--podpath=. --noindex --infile=$< --outfile=$@

man/man1/%.1: %.pod
	pod2man --release=1.4 --center="LLVM Command Guide" $< $@

ps/%.ps: man/man1/%.1
	groff -Tps -man $< > $@

clean:
	rm -f pod2htm*.*~~ $(HTML) $(MAN) $(PS)