# Makefile --- GNU Makefile for building bandali's cv # Copyright (C) 2020 Amin Bandali # This file is part of bandali's cv. # This CV is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # This CV is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # You should have received a copy of the GNU General Public License # along with this CV. If not, see . # .PRECIOUS: bandali-%.pdf all: cv resume 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