blob: a0f25810de3b4eaafc0b82794e6250262bd0da22 [file] [log] [blame]
Brian Silverman84b22232019-01-25 20:29:29 -08001HTML_PARAMS = style-html.xsl
2MAN_PARAMS = style-man.xsl
3
4source = pycrc.xml
5targets = $(source:.xml=.html) $(source:.xml=.1)
6
7all: $(targets)
8
9.PHONY: clean
10clean:
11 $(RM) $(targets)
12
13.PHONY: check
14check:
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 $< > $@