File: Makefile

package info (click to toggle)
libaqbanking 5.4.3beta-2
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 15,244 kB
  • ctags: 6,703
  • sloc: ansic: 119,813; sh: 11,218; xml: 9,839; makefile: 2,357; cpp: 2,233; perl: 278; pascal: 115
file content (41 lines) | stat: -rw-r--r-- 1,710 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
version := $(shell dpkg-parsechangelog -l../changelog | sed -nr 's/^Version: (.*)/\1/p')

all: aqhbci-tool4.1 hbcixml3.1 aqbanking-config.1 dh_aqbanking.1

aqhbci-tool4.1.xml: aqhbci-tool4.1.txt aqhbci-tool4.1.generated.txt
	asciidoc -d manpage -b docbook aqhbci-tool4.1.txt

hbcixml3.1.xml: hbcixml3.1.txt hbcixml3.1.generated.txt
	asciidoc -d manpage -b docbook hbcixml3.1.txt

aqbanking-config.1.xml: aqbanking-config.1.txt aqbanking-config.1.generated.txt
	asciidoc -d manpage -b docbook aqbanking-config.1.txt

hbcixml3.1.generated.txt: ../../src/plugins/backends/aqhbci/tools/hbcixml/hbcixml3
	../../src/plugins/backends/aqhbci/tools/hbcixml/hbcixml3 --help 2>&1 \
		| sed -e '1,/^ General Options:/d;s/^ -\([a-z-][^-]*\)\s\+-/-\1::\n    /;s/\s*::/::/;s/^ \(Special Options.*\):/=== \1/;/^\s*RDH/s/RDH/* RDH/;/^\s*DDV/s/DDV/* DDV/;/^\(The simplest usage.*\)/,$$d' \
		> hbcixml3.1.generated.txt

aqhbci-tool4.1.generated.txt: ../../src/plugins/backends/aqhbci/tools/aqhbci-tool/aqhbci-tool4
	../../src/plugins/backends/aqhbci/tools/aqhbci-tool/aqhbci-tool4 --help 2>&1 \
		| sed -e 's/^Usage:.*//;s/^Global Options:.*//;s/:$$/::/g;s/^\(\S\+.*\)::$$/== \1/g;s/^  \(\S\+\)::/\1::/g;s/^ \[\(.*\)\]/\1::/g' \
		> aqhbci-tool4.1.generated.txt

aqbanking-config.1.generated.txt: ../../aqbanking-config
	../../aqbanking-config --help \
		| sed -e 's/^Usage:.*//;s/^.*aqbanking-config --\(\w\+\)/--\1::\n/;' \
		> aqbanking-config.1.generated.txt

%.xml:	%.txt
	asciidoc -d manpage -b docbook $*.txt

%: %.xml
	xmlto man $*.xml

dh_aqbanking.1:
	pod2man -r "libaqbanking $(version)" -c dh_aqbanking --section=1 ../debhelper/dh_aqbanking dh_aqbanking.1

clean:
	rm -f *.generated.txt *.xml *.1

.PHONY: all clean