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 base.pdf: base.tex cv_base.cls basics ${LATEX_CMD} base.tex clean: rm -rf out clean_fonts: rm -rf fonts/