M Makefile => Makefile +12 -3
@@ 1,9 1,18 @@
clean:
- rm -f *.aux *.log *.out *.pax *.pdf
- rm -f preview.png
+ rm -f *.aux *.log *.out *.pax
+ rm -f *.bak
+ rm -f *.pdf
+ rm -f *.png
-build: clean
+build: clean document.pdf preview.png
+
+document.pdf: document.tex
pdflatex document.tex
+
+preview.png: document.pdf
pdftoppm document.pdf preview -png -singlefile
+sync: document.pdf
+ rsync --recursive --links --compress --delete document.pdf alarm@arch3.intra.dominic-ricottone.com:/var/deploy/web/
+.PHONY: clean build sync
M preview.png => preview.png +0 -0