equal
deleted
inserted
replaced
1 TXT = abstract.txt |
1 TXT = abstract.txt |
2 HTML = out/abstract.html |
2 HTML = out/abstract.html |
|
3 PDF = out/abstract.pdf |
3 |
4 |
4 #REVISION = ${shell hg id -tibB} |
5 #REVISION = ${shell hg id -tibB} |
5 REVISION = ${shell hg log -r . --template '{latesttag}-{latesttagdistance}-{node|short}'} |
6 REVISION = ${shell hg log -r . --template '{latesttag}-{latesttagdistance}-{node|short}'} |
6 DATE = ${shell date -I} |
7 DATE = ${shell date -I} |
7 |
8 |
|
9 AOPTS = -a revision="${REVISION}" -a date="${DATE}" |
8 |
10 |
9 .PHONY: all clean |
11 .PHONY: all clean pdf html |
10 |
12 |
11 all: ${HTML} |
13 |
12 clean: ; rm -f ${HTML} |
14 all: html pdf |
|
15 clean: ; rm -f ${HTML} ${PDF} |
|
16 |
|
17 pdf: ${PDF} |
|
18 html: ${HTML} |
|
19 |
|
20 out/%.pdf: %.txt |
|
21 @mkdir -p ${dir $@} |
|
22 a2x --asciidoc-opts="${AOPTS}" -D ${dir $@} $< |
13 |
23 |
14 out/%.html: %.txt |
24 out/%.html: %.txt |
15 @mkdir -p ${dir $@} |
25 @mkdir -p ${dir $@} |
16 asciidoc -a revision="${REVISION}" -a date="${DATE}" -o $@ $< |
26 # asciidoc -a revision="${REVISION}" -a date="${DATE}" -o $@ $< |
|
27 asciidoc ${AOPTS} -o $@ $< |