]> code.communitydata.science - uw_tex_letterhead.git/blobdiff - Makefile
merge sayamindu's old repository with my new one
[uw_tex_letterhead.git] / Makefile
index 1c36b49df6aa2418d0b52f9df91d3bb721d09c3b..1211cf32d878da70a2ead061d231718001bcf3cb 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,13 +1,19 @@
 #!/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
@@ -15,4 +21,3 @@ viewpdf: all
 pdf: all
 
 .PHONY: clean all
-

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