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
|
# vim: ts=4 sw=4 noet
ad := ~/.local/share/gem/ruby/3.3.0/bin/asciidoctor
adopt ?= -o $@
ff := ../local/fangfrisch
sources := fangfrisch.adoc combined.conf usage.txt ../contrib/fangfrisch-has-news.sh
dest := index.html fangfrisch.pdf
.PHONY: all clean force
all: $(dest)
combined.conf: example.conf internal.conf
$(ff) -c $< dumpconf > $@
internal.conf:
$(ff) -c /dev/null dumpconf > $@
usage.txt:
$(ff) -h > $@
index.html: $(sources)
$(ad) -a toc=right $(adopt) $<
fangfrisch.pdf: $(sources)
$(ad)-pdf -a toc=preamble -a title-page $(adopt) $<
clean:
/bin/rm index.html fangfrisch.pdf || true
force:
rm -f $(dest) internal.conf usage.txt
make
|