You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

35 lines
745 B
Makefile

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
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
clean:
rm -rf out
clean_fonts:
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