TEX = pandoc
FLAGS = --pdf-engine=xelatex

src1 = assets/letter.latex example_letter.md
op1 = example_letter

all : $(op1).pdf

$(op1).pdf : $(src1)
	$(TEX) $(filter-out $<,$^ ) -o $@ --template=$< $(FLAGS)
