19 lines
540 B
Makefile
19 lines
540 B
Makefile
TEX = xelatex
|
|
src = single_page.tex colors.yaml
|
|
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
|
|
|
|
.PHONY: clean
|
|
clean :
|
|
rm single_page.pdf single_page_src.tex
|