File: Makefile

package info (click to toggle)
exactimage 1.2.1-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 3,040 kB
  • sloc: cpp: 35,940; ansic: 1,952; xml: 1,447; makefile: 338; perl: 138; sh: 110; python: 45; php: 37; ruby: 12
file content (18 lines) | stat: -rw-r--r-- 354 bytes parent folder | download | duplicates (17)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
XML_FILES = $(wildcard *.xml)
MAN_FILES = $(XML_FILES:.xml=)

XSL = http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl
XSL_PARAMS = --param man.charmap.use.subset 0

.PHONY: all
all: $(MAN_FILES)

%: %.xml
	xmllint --valid --noout $(<)
	xsltproc $(XSL_PARAMS) $(XSL) $(<)

.PHONY: clean
clean:
	rm $(MAN_FILES)

# vim:ts=4 sw=4 noet