Updated some old things and began a new version
This commit is contained in:
25
makefile
25
makefile
@@ -1,15 +1,18 @@
|
||||
TEX = pandoc
|
||||
src = template.tex details.yml
|
||||
src_contract = template_contract.tex details.yml
|
||||
FLAGS = --pdf-engine=xelatex
|
||||
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)
|
||||
|
||||
output.pdf : $(src)
|
||||
$(TEX) $(filter-out $<,$^ ) -o $@ --template=$< $(FLAGS)
|
||||
|
||||
.PHONY: contract
|
||||
contract : $(src_contract)
|
||||
$(TEX) $(filter-out $<,$^ ) -o output_contract.pdf --template=$< $(FLAGS)
|
||||
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 output.pdf output_contract.pdf
|
||||
rm single_page.pdf single_page_src.tex
|
||||
|
||||
Reference in New Issue
Block a user