24 lines
392 B
Makefile
24 lines
392 B
Makefile
#!/usr/bin/make
|
|
.RECIPEPREFIX +=
|
|
SIGIMAGE = figures/signature.png.gpg
|
|
|
|
all: $(patsubst %.tex,%.pdf,$(wildcard *.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 figures/signature.png
|
|
|
|
viewpdf: all
|
|
evince *.pdf
|
|
|
|
pdf: all
|
|
|
|
.PHONY: clean all
|