Brian Silverman | 84b2223 | 2019-01-25 20:29:29 -0800 | [diff] [blame^] | 1 | HTML_PARAMS = style-html.xsl |
2 | MAN_PARAMS = style-man.xsl | ||||
3 | |||||
4 | source = pycrc.xml | ||||
5 | targets = $(source:.xml=.html) $(source:.xml=.1) | ||||
6 | |||||
7 | all: $(targets) | ||||
8 | |||||
9 | .PHONY: clean | ||||
10 | clean: | ||||
11 | $(RM) $(targets) | ||||
12 | |||||
13 | .PHONY: check | ||||
14 | check: | ||||
15 | xmllint --valid --noout $(source) | ||||
16 | |||||
17 | %.html: %.xml $(HTML_PARAMS) | ||||
18 | saxon-xslt -o $@ $^ | ||||
19 | |||||
20 | %.1: %.xml $(MAN_PARAMS) | ||||
21 | saxon-xslt -o $@ $^ | ||||
22 | |||||
23 | %.txt: %.html | ||||
24 | links -dump -no-numbering -no-references $< > $@ |