| 1 |
version := $(shell dpkg-parsechangelog -l../changelog | sed -nr 's/^Version: (.*)/\1/p') |
| 2 |
|
| 3 |
all: aqhbci-tool4.1 |
| 4 |
|
| 5 |
aqhbci-tool4.1: aqhbci-tool4.1.txt aqhbci-tool4.1.generated.txt |
| 6 |
asciidoctor -d manpage -b manpage $< |
| 7 |
|
| 8 |
aqhbci-tool4.1.generated.txt: ../../src/tools/aqbanking-cli/aqhbci-tool4 |
| 9 |
$< --help \ |
| 10 |
| sed -e 's/^Usage:.*//;s/^Global Options:.*//;s/:$$/::/g;s/^\(\S\+.*\)::$$/== \1/g;s/^ \(\S\+\)::/\1::/g;s/^ \[\(.*\)\]/\1::/g' \ |
| 11 |
> $@ |
| 12 |
|
| 13 |
%: %.txt |
| 14 |
asciidoctor -d manpage -b manpage $*.txt |
| 15 |
|
| 16 |
clean: |
| 17 |
rm -f *.generated.txt *.1 |
| 18 |
|
| 19 |
.PHONY: all clean |