about summary refs log tree commit diff stats
path: root/doc/Makefile
blob: 17b7b7c2f02b2b545f355c7918a3783a46353e40 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
.POSIX:
.DELETE_ON_ERROR:

.PHONY: all
all: breaking_rules.pdf breaking_rules.html

# Stick with gfm for as long as possible.
# Use stuff beyond that only where absolutely necessary.
# Similar to code, YAGNI.

breaking_rules.pdf: macros.ms breaking_rules.md refs
	( cat macros.ms; lowdown -sTms breaking_rules.md ) | pdfroff -i -t -R -mspdf -k -Kutf8 > $@

# Headers aren't emitted currently
breaking_rules.html: macros.ms breaking_rules.md refs
	( cat macros.ms; lowdown -sTms breaking_rules.md ) | groff -Thtml -i -t -R -ms -k -Kutf8 > $@

.PHONY: clean
clean:
	$(RM) breaking_rules.pdf