File: Makefile

package info (click to toggle)
pycrc 0.10.0-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 512 kB
  • sloc: python: 2,865; xml: 655; ansic: 227; sh: 207; makefile: 22
file content (24 lines) | stat: -rw-r--r-- 404 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
HTML_PARAMS	= style-html.xsl
MAN_PARAMS	= style-man.xsl

source		= pycrc.xml
targets		= $(source:.xml=.html) $(source:.xml=.1)

all: $(targets)

.PHONY: clean
clean:
	$(RM) $(targets)

.PHONY: check
check:
	xmllint --valid --noout $(source)

%.html: %.xml $(HTML_PARAMS)
	saxon-xslt -o $@ $^

%.1: %.xml $(MAN_PARAMS)
	saxon-xslt -o $@ $^

%.txt: %.html
	links -dump -no-numbering -no-references $< > $@