X-Git-Url: https://code.communitydata.science/uw_tex_letterhead.git/blobdiff_plain/7095325c6110afca9a7e05f403cb35a9a76d2400..HEAD:/Makefile?ds=sidebyside diff --git a/Makefile b/Makefile index 1211cf3..4a26058 100644 --- a/Makefile +++ b/Makefile @@ -1,23 +1,27 @@ #!/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 $< +# 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)) + +figures/signature.pdf: + gpg --yes --output $(DEC_SIGIMAGE) --decrypt $(ENC_SIGIMAGE) -