37 lines
799 B
Makefile
37 lines
799 B
Makefile
.DEFAULT_GOAL := default
|
|
|
|
default: cv
|
|
|
|
## Build CV
|
|
cv: Paul_Lesur_CV.pdf
|
|
|
|
dev_cv:
|
|
latexmk -pvc -f -xelatex Paul_Lesur_CV.tex
|
|
|
|
dev_pubs:
|
|
latexmk -pvc -f -xelatex Paul_Lesur_publication_list.tex
|
|
|
|
## Build publication list
|
|
pubs: Paul_Lesur_publication_list.pdf
|
|
|
|
%.pdf: %.tex
|
|
xelatex $*
|
|
biber $*
|
|
xelatex $*
|
|
|
|
## Cleanup build files
|
|
clean:
|
|
rm -rf *.log *.out *.aux *.blg *.bbl *.bcf *.run.xml *.fls *.fdb_latexmk *.pdf
|
|
|
|
## Show this help screen
|
|
help:
|
|
@printf "Available targets\n\n"
|
|
@awk '/^[a-zA-Z\-_0-9]+:/ { \
|
|
helpMessage = match(lastLine, /^## (.*)/); \
|
|
if (helpMessage) { \
|
|
helpCommand = substr($$1, 0, index($$1, ":")-1); \
|
|
helpMessage = substr(lastLine, RSTART + 3, RLENGTH); \
|
|
printf "%-30s %s\n", helpCommand, helpMessage; \
|
|
} \
|
|
} \
|
|
{ lastLine = $$0 }' $(MAKEFILE_LIST)
|