about summary refs log blame commit diff stats
path: root/doc/Makefile
blob: adae8902ca16f9b185eca5145d299a42ae46f279 (plain) (tree)
1
2
3
4
5
6
7
8
9
10



                 
                                                              




                                                        
                                                      
                                                                                                   
 
                                                 
                                                       
                                                                                                      
 


                                                                                                                                  


                  

             
                                                                       
.POSIX:
.DELETE_ON_ERROR:

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

# 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.i
	( cat macros.ms; lowdown -sTms breaking_rules.md ) | pdfroff -i -t -R -mspdf -k -Kutf8 > $@

# On macOS only, headers aren't emitted currently
breaking_rules.html: macros.ms breaking_rules.md refs.i
	( cat macros.ms; lowdown -sTms breaking_rules.md ) | groff -Txhtml -i -t -R -ms -k -Kutf8 > $@

breaking_rules.txt: macros.ms breaking_rules.md refs.i
	( cat macros.ms; lowdown -sTms breaking_rules.md ) | env GROFF_NO_SGR=t groff -Tlatin1 -i -t -R -ms -k -Kutf8 -c | ul > $@

refs.i: refs
	indxbib $^

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