## ---- user config ---- PANDOC_TMPL := eisvogel.latex PANDOC_OPTIONS := --listings --toc -V lang=es PANDOC_ORG := pandoc --toc PANDOC_MD := pandoc --template $(PANDOC_TMPL) $(PANDOC_OPTIONS) METADATA := Assets/metadata.yaml DOC := Docs ## ---- build rules ---- all: $(DOC)/Project.pdf $(DOC)/Project.md: $(DOC)/Project.org $(PANDOC_ORG) -o $@ $< $(DOC)/Project.pdf: $(DOC)/Project.md $(PANDOC_MD) -o $@ $< $(METADATA) clean: rm $(DOC)/*.md rm $(DOC)/*.pdf