Oops, make install copies things
[groups/soviet-russia/public.git] / Makefile
1 SOURCES=$(wildcard *.tex) tea/rating.tex
2 OUTPUTS=$(SOURCES:.tex=.pdf)
3
4 all : $(OUTPUTS)
5
6 clean :
7         rm $(OUTPUTS) *.aux *.log tea/*.aux tea/*.log
8
9 %.pdf : %.tex
10         cd $(@D) && pdflatex -halt-on-error $(<F) && pdflatex -halt-on-error $(<F)
11
12 install : $(OUTPUTS)
13         mkdir -p artifacts/
14         cp $(filter-out tea/rating.pdf,$^) artifacts/
15         cp tea/rating.pdf artifacts/tea-rating.pdf
16
17 # Delete PDF's when they fail to compile
18 # See https://www.gnu.org/software/make/manual/html_node/Errors.html#Errors
19 .DELETE_ON_ERROR: