#!/usr/bin/make
-.RECIPEPREFIX +=
-SIGIMAGE = figures/signature.png.gpg
-all: $(patsubst %.tex,%.pdf,$(wildcard *.tex))
+ENC_SIGIMAGE = figures/signature.pdf.gpg
+DEC_SIGIMAGE = figures/signature.pdf
-%.pdf: update-sig %.tex
- latexmk -f -xelatex $<
+all: figures/signature.pdf $(patsubst %.tex,%.pdf,$(wildcard *.tex))
+
+figures/signature.pdf:
+ gpg --yes --output $(DEC_SIGIMAGE) --decrypt $(ENC_SIGIMAGE)
-<update-sig:
- gpg --yes --output figures/signature.png --decrypt $(SIGIMAGE)
+%.pdf: %.tex
+ latexmk -f -xelatex $<
-clean:
+clean:
latexmk -C *.tex
$(RM) -f *.tmp *.run.xml
- $(RM) -f figures/signature.png
+ $(RM) -f $(DEC_SIGIMAGE)
viewpdf: all
evince *.pdf
pdf: all
-.PHONY: clean all
+.PHONY: clean all update-sig