Mercurial > hg > cv
comparison makefile @ 25:608d78441570
Makefile tweaks
author | Daniele Nicolodi <daniele@grinta.net> |
---|---|
date | Sun, 17 Oct 2021 16:52:28 +0200 |
parents | efc357cfa277 |
children |
comparison
equal
deleted
inserted
replaced
24:49001fa5195c | 25:608d78441570 |
---|---|
1 SRC = cv | 1 SRC = cv |
2 BIB = publications.bib | 2 BIB = publications.bib |
3 | 3 |
4 all: $(SRC).pdf | 4 # get last modification date |
5 MDATE=$(shell stat -t "%Y%m%d" -f "%Sm" cv.tex publications.bib | sort -rn | head -1) | |
5 | 6 |
6 %.pdf: %.tex publications.bib | 7 all: cv.pdf |
8 | |
9 %.pdf: %.tex publications.bib cv.sty | |
7 pdflatex -file-line-error -halt-on-error $(SRC).tex | 10 pdflatex -file-line-error -halt-on-error $(SRC).tex |
8 biber $(SRC) | 11 biber $(SRC) |
9 pdflatex $(SRC).tex | 12 pdflatex $(SRC).tex |
10 pdflatex $(SRC).tex | 13 pdflatex $(SRC).tex |
11 | 14 |
12 clean: | 15 clean: |
13 rm -f $(SRC)-blx.bib $(SRC).aux $(SRC).bbl $(SRC).blg $(SRC).log $(SRC).out $(SRC).pdf | 16 rm -f $(SRC)-blx.bib $(SRC).aux $(SRC).bbl $(SRC).blg $(SRC).log $(SRC).out $(SRC).pdf |
17 | |
18 copy: | |
19 cp $(SRC).pdf nicolodi-cv-$(MDATE).pdf |