cv-template/Makefile

39 lines
842 B
Makefile
Raw Permalink 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
2022-09-18 11:18:51 +02:00
LATEX_CMD = latexmk -lualatex --halt-on-error --synctex=1 --output-directory=out
2022-09-17 10:57:23 +02:00
2022-09-18 11:18:51 +02:00
.PHONY: clean clean_fonts all
# create output folder!
$(info $(shell mkdir -p out))
all: out/cv_letter.pdf out/cv.pdf
out/base.pdf: base.tex cv_base.cls fonts/sentinel
${LATEX_CMD} base.tex
out/cv.pdf: cv.tex cv_base.cls cv.cls fonts/sentinel
${LATEX_CMD} cv.tex
out/cv_letter.pdf: cv_letter.tex cv_base.cls cv_letter.cls fonts/sentinel
${LATEX_CMD} cv_letter.tex
2022-09-17 10:57:23 +02:00
fonts/sentinel:
mkdir -p fonts
2022-09-18 11:18:51 +02:00
fc-list | grep -E 'Lato-|DejaVu' | grep -v -- "-minimal" | cut -d : -f 1 | xargs -I{} bash -c 'ln -fs {} fonts/$$(basename {})'
2022-09-17 10:57:23 +02:00
touch fonts/sentinel
clean:
rm -rf out
clean_fonts:
2022-09-17 17:48:19 +02:00
rm -rf fonts/