Add Makefile

This commit is contained in:
2019-09-30 20:05:34 +02:00
parent e98e2e5cb3
commit 31f946df48
3 changed files with 29 additions and 7 deletions

20
Makefile Normal file
View File

@@ -0,0 +1,20 @@
## ---- 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