annotate makefile @ 25:608d78441570

Makefile tweaks
author Daniele Nicolodi <daniele@grinta.net>
date Sun, 17 Oct 2021 16:52:28 +0200
parents efc357cfa277
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
Daniele Nicolodi <daniele@grinta.net>
parents:
diff changeset
1 SRC = cv
Daniele Nicolodi <daniele@grinta.net>
parents:
diff changeset
2 BIB = publications.bib
Daniele Nicolodi <daniele@grinta.net>
parents:
diff changeset
3
25
608d78441570 Makefile tweaks
Daniele Nicolodi <daniele@grinta.net>
parents: 20
diff changeset
4 # get last modification date
608d78441570 Makefile tweaks
Daniele Nicolodi <daniele@grinta.net>
parents: 20
diff changeset
5 MDATE=$(shell stat -t "%Y%m%d" -f "%Sm" cv.tex publications.bib | sort -rn | head -1)
0
Daniele Nicolodi <daniele@grinta.net>
parents:
diff changeset
6
25
608d78441570 Makefile tweaks
Daniele Nicolodi <daniele@grinta.net>
parents: 20
diff changeset
7 all: cv.pdf
608d78441570 Makefile tweaks
Daniele Nicolodi <daniele@grinta.net>
parents: 20
diff changeset
8
608d78441570 Makefile tweaks
Daniele Nicolodi <daniele@grinta.net>
parents: 20
diff changeset
9 %.pdf: %.tex publications.bib cv.sty
0
Daniele Nicolodi <daniele@grinta.net>
parents:
diff changeset
10 pdflatex -file-line-error -halt-on-error $(SRC).tex
5
a74b9e0f9064 Switch from biblatex to biber
Daniele Nicolodi <daniele@grinta.net>
parents: 0
diff changeset
11 biber $(SRC)
0
Daniele Nicolodi <daniele@grinta.net>
parents:
diff changeset
12 pdflatex $(SRC).tex
Daniele Nicolodi <daniele@grinta.net>
parents:
diff changeset
13 pdflatex $(SRC).tex
Daniele Nicolodi <daniele@grinta.net>
parents:
diff changeset
14
Daniele Nicolodi <daniele@grinta.net>
parents:
diff changeset
15 clean:
Daniele Nicolodi <daniele@grinta.net>
parents:
diff changeset
16 rm -f $(SRC)-blx.bib $(SRC).aux $(SRC).bbl $(SRC).blg $(SRC).log $(SRC).out $(SRC).pdf
25
608d78441570 Makefile tweaks
Daniele Nicolodi <daniele@grinta.net>
parents: 20
diff changeset
17
608d78441570 Makefile tweaks
Daniele Nicolodi <daniele@grinta.net>
parents: 20
diff changeset
18 copy:
608d78441570 Makefile tweaks
Daniele Nicolodi <daniele@grinta.net>
parents: 20
diff changeset
19 cp $(SRC).pdf nicolodi-cv-$(MDATE).pdf