33 lines
745 B
Makefile
33 lines
745 B
Makefile
.DEFAULT_GOAL := default
|
|
|
|
default: all
|
|
all: cv résumé pubs
|
|
|
|
## Build CV
|
|
cv: build/Paul_Lesur_CV.pdf
|
|
|
|
## Build résumé
|
|
résumé: build/Paul_Lesur_résumé.pdf
|
|
|
|
## Build publication list
|
|
pubs: build/Paul_Lesur_publications.pdf
|
|
|
|
build/%.pdf: %.tex ./common/*
|
|
latexmk -xelatex -verbose -file-line-error -synctex=1 $*
|
|
|
|
## Cleanup build files
|
|
clean:
|
|
rm -rf build/*
|
|
|
|
## 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)
|