view makefile @ 27:86a6ab1746e4 default tip

orcid
author Daniele Nicolodi <daniele@grinta.net>
date Wed, 19 Jul 2023 15:46:40 +0200
parents 608d78441570
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