2018-02-18 15:59:49 -08:00
|
|
|
#!/usr/bin/make
|
|
|
|
|
|
2018-02-18 16:37:57 -08:00
|
|
|
ENC_SIGIMAGE = figures/signature.pdf.gpg
|
|
|
|
|
DEC_SIGIMAGE = figures/signature.pdf
|
2018-02-18 15:59:49 -08:00
|
|
|
|
2018-02-18 16:43:55 -08:00
|
|
|
# to use encrypted signatures files, add "figures/signature.pdf" (no
|
|
|
|
|
# quotes) right before the first $( in the following line:
|
|
|
|
|
all: $(patsubst %.tex,%.pdf,$(wildcard *.tex))
|
2018-02-18 16:37:57 -08:00
|
|
|
|
|
|
|
|
figures/signature.pdf:
|
|
|
|
|
gpg --yes --output $(DEC_SIGIMAGE) --decrypt $(ENC_SIGIMAGE)
|
2018-02-18 15:59:49 -08:00
|
|
|
|
2018-02-18 16:37:57 -08:00
|
|
|
%.pdf: %.tex
|
2026-04-12 16:43:47 -07:00
|
|
|
latexmk -f -lualatex $<
|
2017-11-24 20:09:28 -08:00
|
|
|
|
2018-02-18 16:37:57 -08:00
|
|
|
clean:
|
2018-02-18 15:59:49 -08:00
|
|
|
latexmk -C *.tex
|
2018-02-18 16:22:46 -08:00
|
|
|
$(RM) -f *.tmp *.run.xml
|
2018-02-18 16:43:55 -08:00
|
|
|
# to use encrypted signature files, uncomment the following line
|
|
|
|
|
# $(RM) -f $(DEC_SIGIMAGE)
|
2018-02-18 15:59:49 -08:00
|
|
|
|
|
|
|
|
viewpdf: all
|
|
|
|
|
evince *.pdf
|
|
|
|
|
|
|
|
|
|
pdf: all
|
|
|
|
|
|
2018-02-18 16:37:57 -08:00
|
|
|
.PHONY: clean all update-sig
|