File: Makefile

package info (click to toggle)
fangfrisch 1.9.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 804 kB
  • sloc: python: 1,326; sh: 113; makefile: 64; sql: 24
file content (32 lines) | stat: -rw-r--r-- 663 bytes parent folder | download
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