]> code.communitydata.science - uw_tex_letterhead.git/blob - Makefile
added page numbers for longer letters
[uw_tex_letterhead.git] / Makefile
1 #!/usr/bin/make
2
3 ENC_SIGIMAGE = figures/signature.pdf.gpg
4 DEC_SIGIMAGE = figures/signature.pdf
5
6 # to use encrypted signatures files, add "figures/signature.pdf" (no
7 # quotes) right before the first $( in the following line:
8 all: $(patsubst %.tex,%.pdf,$(wildcard *.tex))
9
10 figures/signature.pdf:
11         gpg --yes --output $(DEC_SIGIMAGE) --decrypt $(ENC_SIGIMAGE)
12
13 %.pdf: %.tex
14         latexmk -f -xelatex $<
15
16 clean:
17         latexmk -C *.tex
18         $(RM) -f *.tmp *.run.xml
19         # to use encrypted signature files, uncomment the following line
20         # $(RM) -f $(DEC_SIGIMAGE)
21
22 viewpdf: all
23         evince *.pdf
24
25 pdf: all
26
27 .PHONY: clean all update-sig

Community Data Science Collective || Want to submit a patch?