]> code.communitydata.science - uw_tex_letterhead.git/blobdiff - Makefile
several cleanup steps
[uw_tex_letterhead.git] / Makefile
index 1c36b49df6aa2418d0b52f9df91d3bb721d09c3b..3441f9b31bb223fde9275b481df9440ccbe075f1 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,18 +1,24 @@
 #!/usr/bin/make
 
 #!/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 $<
 
        latexmk -f -xelatex $<
 
-clean: 
+clean:
        latexmk -C *.tex
        latexmk -C *.tex
-       rm -f *.tmp *.run.xml
+       $(RM) -f *.tmp *.run.xml
+       $(RM) -f $(DEC_SIGIMAGE)
 
 viewpdf: all
        evince *.pdf
 
 pdf: all
 
 
 viewpdf: all
        evince *.pdf
 
 pdf: all
 
-.PHONY: clean all
-
+.PHONY: clean all update-sig

Community Data Science Collective || Want to submit a patch?