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