]> code.communitydata.science - uw_tex_letterhead.git/blobdiff - Makefile
added page numbers for longer letters
[uw_tex_letterhead.git] / Makefile
index 1211cf32d878da70a2ead061d231718001bcf3cb..4a260581759d87cb27f8be48c0f68e48ea101d93 100644 (file)
--- 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)
 
-<update-sig:
-    gpg --yes --output figures/signature.png --decrypt $(SIGIMAGE)
+%.pdf: %.tex
+       latexmk -f -xelatex $<
 
-clean: 
+clean:
        latexmk -C *.tex
        $(RM) -f *.tmp *.run.xml
-       $(RM) -f figures/signature.png
+       # to use encrypted signature files, uncomment the following line
+       # $(RM) -f $(DEC_SIGIMAGE)
 
 viewpdf: all
        evince *.pdf
 
 pdf: all
 
-.PHONY: clean all
+.PHONY: clean all update-sig

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