Files
resume/makefile
2023-12-10 18:07:40 -07:00

22 lines
621 B
Makefile

TEX = xelatex
src = single_page.tex colors.yaml logo.png
PRIMARY = $(shell yq e .primary colors.yaml)
SECONDARY = $(shell yq e .secondary colors.yaml)
TERTIARY = $(shell yq e .tertiary colors.yaml)
TEXT = $(shell yq e .text colors.yaml)
single_page.pdf : $(src)
sed -e "s/\$$primary/$(PRIMARY)/g" \
-e "s/\$$secondary/$(SECONDARY)/g" \
-e "s/\$$tertiary/$(TERTIARY)/g" \
-e "s/\$$text/$(TEXT)/g" \
single_page.tex > single_page_src.tex
$(TEX) -o $(FLAGS) single_page_src.tex
mv single_page_src.pdf single_page.pdf
rm single_page_src.*
rm *.log
.PHONY: clean
clean :
rm single_page.pdf single_page_src.tex