File: Makefile

package info (click to toggle)
drbl 5.8.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 6,996 kB
  • sloc: sh: 43,555; perl: 8,820; xml: 867; makefile: 135
file content (16 lines) | stat: -rw-r--r-- 409 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
TARGETS = $(shell for f in *.xml; do section=$$(grep "ENTITY dhsection" $$f| sed -n 's/[^0-9]*\([1-8]\).*/\1/ p'); g=$${f/.xml/}; echo $$g.$${section}; done)

XP     = xsltproc --nonet --param man.charmap.use.subset "0"
DB2MAN = /usr/share/sgml/docbook/stylesheet/xsl/docbook-xsl/manpages/docbook.xsl

all: $(TARGETS)

test: 
	@echo $(TARGETS)

%.1: %.xml
	$(XP) $(DB2MAN) $<

%.8: %.xml
	$(XP) $(DB2MAN) $<