diff makefile @ 0:7102bd9bd8b9

Import
author Daniele Nicolodi <daniele@grinta.net>
date Tue, 13 Sep 2011 12:01:49 +0200
parents
children a74b9e0f9064
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/makefile	Tue Sep 13 12:01:49 2011 +0200
@@ -0,0 +1,15 @@
+SRC = cv
+BIB = publications.bib
+TODAY = $(shell date +%Y%m%d)
+
+all: $(SRC).pdf
+	cp $(SRC).pdf nicolodi-cv-$(TODAY).pdf
+
+%.pdf: %.tex publications.bib
+	pdflatex -file-line-error -halt-on-error $(SRC).tex
+	bibtex $(SRC)
+	pdflatex $(SRC).tex
+	pdflatex $(SRC).tex
+
+clean:
+	rm -f $(SRC)-blx.bib $(SRC).aux $(SRC).bbl $(SRC).blg $(SRC).log $(SRC).out $(SRC).pdf