| 1 |
# vim: ts=4 sw=4 noet |
| 2 |
ad := ~/.local/share/gem/ruby/3.3.0/bin/asciidoctor |
| 3 |
adopt ?= -o $@ |
| 4 |
ff := ../local/fangfrisch |
| 5 |
sources := fangfrisch.adoc combined.conf usage.txt ../contrib/fangfrisch-has-news.sh |
| 6 |
dest := index.html fangfrisch.pdf |
| 7 |
|
| 8 |
.PHONY: all clean force |
| 9 |
|
| 10 |
all: $(dest) |
| 11 |
|
| 12 |
combined.conf: example.conf internal.conf |
| 13 |
$(ff) -c $< dumpconf > $@ |
| 14 |
|
| 15 |
internal.conf: |
| 16 |
$(ff) -c /dev/null dumpconf > $@ |
| 17 |
|
| 18 |
usage.txt: |
| 19 |
$(ff) -h > $@ |
| 20 |
|
| 21 |
index.html: $(sources) |
| 22 |
$(ad) -a toc=right $(adopt) $< |
| 23 |
|
| 24 |
fangfrisch.pdf: $(sources) |
| 25 |
$(ad)-pdf -a toc=preamble -a title-page $(adopt) $< |
| 26 |
|
| 27 |
clean: |
| 28 |
/bin/rm index.html fangfrisch.pdf || true |
| 29 |
|
| 30 |
force: |
| 31 |
rm -f $(dest) internal.conf usage.txt |
| 32 |
make |