2004-05-14 19:50:33 +00:00
|
|
|
POD = $(wildcard *.pod)
|
2004-05-14 20:24:59 +00:00
|
|
|
HTML = $(patsubst %.pod, html/%.html, $(POD))
|
|
|
|
MAN = $(patsubst %.pod, man/man1/%.1, $(POD))
|
|
|
|
PS = $(patsubst %.pod, ps/%.ps, $(POD))
|
2004-05-14 19:50:33 +00:00
|
|
|
|
|
|
|
all: $(HTML) $(MAN) $(PS)
|
|
|
|
|
|
|
|
.SUFFIXES:
|
|
|
|
.SUFFIXES: .html .pod .1 .ps
|
|
|
|
|
2004-05-14 20:24:59 +00:00
|
|
|
html/%.html: %.pod
|
|
|
|
pod2html --css=manpage.css --htmlroot=. \
|
|
|
|
--podpath=. --noindex --infile=$< --outfile=$@
|
2004-05-14 19:50:33 +00:00
|
|
|
|
2004-05-14 20:24:59 +00:00
|
|
|
man/man1/%.1: %.pod
|
2004-05-14 20:29:11 +00:00
|
|
|
pod2man --release=1.3 --center="LLVM Command Guide" $< $@
|
2004-05-14 19:50:33 +00:00
|
|
|
|
2004-05-14 20:24:59 +00:00
|
|
|
ps/%.ps: man/man1/%.1
|
2004-05-14 19:50:33 +00:00
|
|
|
groff -Tps -man $< > $@
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f pod2htm*.*~~ $(HTML) $(MAN) $(PS)
|
|
|
|
|