view makefile @ 25:608d78441570

Makefile tweaks
author Daniele Nicolodi <daniele@grinta.net>
date Sun, 17 Oct 2021 16:52:28 +0200
parents efc357cfa277
children
line wrap: on
line source

SRC = cv
BIB = publications.bib

# get last modification date
MDATE=$(shell stat -t "%Y%m%d" -f "%Sm" cv.tex publications.bib | sort -rn | head -1)

all: cv.pdf

%.pdf: %.tex publications.bib cv.sty
	pdflatex -file-line-error -halt-on-error $(SRC).tex
	biber $(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

copy:
	cp $(SRC).pdf nicolodi-cv-$(MDATE).pdf