cv-template/Makefile

35 lines
745 B
Makefile
Raw Normal View History

2022-09-17 10:57:23 +02:00
SHELL := bash
.SHELLFLAGS := -eu -o pipefail -c
.ONESHELL:
.DELETE_ON_ERROR:
MAKEFLAGS += --warn-undefined-variables
MAKEFLAGS += --no-builtin-rules
LATEX_CMD = lualatex --halt-on-error --synctex=1 --output-directory=out
.PHONY: clean clean_fonts basics
2022-09-17 10:57:23 +02:00
fonts/sentinel:
mkdir -p fonts
fc-list | grep -E 'Lato-|DejaVu' | grep -v -- "-minimal" | cut -d : -f 1 | xargs -I{} bash -c 'ln -s {} fonts/$$(basename {})'
touch fonts/sentinel
basics: fonts/sentinel
mkdir -p out
2022-09-17 10:57:23 +02:00
clean:
rm -rf out
clean_fonts:
2022-09-17 17:48:19 +02:00
rm -rf fonts/
base.pdf: base.tex cv_base.cls basics
${LATEX_CMD} base.tex
cv.pdf: cv.tex cv_base.cls cv.cls basics
${LATEX_CMD} cv.tex
cv_letter.pdf: cv_letter.tex cv_base.cls cv_letter.cls basics
${LATEX_CMD} cv_letter.tex