X-Git-Url: https://code.communitydata.science/uw_tex_letterhead.git/blobdiff_plain/2be6b8a43aba6630d7179a92f44b06edde944412..1f74ac2ea0f890495caf5fcf4d0204494194a5d3:/Makefile diff --git a/Makefile b/Makefile index 1c36b49..3441f9b 100644 --- a/Makefile +++ b/Makefile @@ -1,18 +1,24 @@ #!/usr/bin/make -all: $(patsubst %.tex,%.pdf,$(wildcard *.tex)) +ENC_SIGIMAGE = figures/signature.pdf.gpg +DEC_SIGIMAGE = figures/signature.pdf -%.pdf: %.tex +all: figures/signature.pdf $(patsubst %.tex,%.pdf,$(wildcard *.tex)) + +figures/signature.pdf: + gpg --yes --output $(DEC_SIGIMAGE) --decrypt $(ENC_SIGIMAGE) + +%.pdf: %.tex latexmk -f -xelatex $< -clean: +clean: latexmk -C *.tex - rm -f *.tmp *.run.xml + $(RM) -f *.tmp *.run.xml + $(RM) -f $(DEC_SIGIMAGE) viewpdf: all evince *.pdf pdf: all -.PHONY: clean all - +.PHONY: clean all update-sig