Brian Gaeke | e993d20 | 2004-05-14 19:50:33 +0000 | [diff] [blame^] | 1 | POD = $(wildcard *.pod) |
| 2 | HTML = $(patsubst %.pod, %.html, $(POD)) |
| 3 | MAN = $(patsubst %.pod, %.1, $(POD)) |
| 4 | PS = $(patsubst %.pod, %.ps, $(POD)) |
| 5 | |
| 6 | all: $(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 | |
| 21 | clean: |
| 22 | rm -f pod2htm*.*~~ $(HTML) $(MAN) $(PS) |
| 23 | |