Long-overdue update to résumé.
[~bandali/cv] / Makefile
index 607248b..2c11a01 100644 (file)
--- a/Makefile
+++ b/Makefile
 # along with this CV.  If not, see <https://www.gnu.org/licenses/>.
 
 
-all: bandali-cv.pdf
+# .PRECIOUS: bandali-%.pdf
 
-bandali-cv.pdf: bandali-cv.tex
-       latexmk -lualatex bandali-cv
+all: cv resume
 
-watch:
-       latexmk -lualatex -pvc -view=none bandali-cv
+bandali-cv.pdf bandali-resume.pdf: bandali-%.pdf: bandali-%.tex
+       latexmk -lualatex $<
+
+watch-%: bandali-%.pdf
+       latexmk -lualatex -pvc -view=none $(basename $<)
+
+%:: bandali-%.pdf
+       cp -p $(basename $<).pdf $(basename $<)-$$(date +%Y).pdf
 
 clean:
+       latexmk -c
+
+clean-all:
        latexmk -C