2019-09-30 20:05:34 +02:00
|
|
|
## ---- user config ----
|
|
|
|
PANDOC_TMPL := eisvogel.latex
|
2019-10-08 18:15:14 +02:00
|
|
|
PANDOC_OPTIONS := --listings --toc -V lang=es --filter pandoc-citeproc
|
2019-09-30 20:05:34 +02:00
|
|
|
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
|