diff --git a/Design.org b/Design.org index 1c04fbc..7c77d98 100644 --- a/Design.org +++ b/Design.org @@ -8,16 +8,18 @@ * Users ** Admin * Tasks -** TODO Parsing script [0/2] [0%] +** TODO Parsing script [0/3] [0%] - [ ] Select useful fiels with awk - [ ] Sum of the volume and areas of each year -** TODO Type requirements handout [4/4] [100%] - SCHEDULED: <2019-09-27 Fri 23:55> +** DONE Type requirements handout [4/4] [100%] + CLOSED: [2019-09-27 Fri 14:54] SCHEDULED: <2019-09-27 Fri 23:55> - [X] Problem description - [X] Functional requirements - [X] Data requirements - [X] Semantic restrictions -** TODO Makefile [0/3] [0%] - - [ ] Org to Markdown - - [ ] Add YAML to Markdown - - [ ] Compile to PDF using Eisvogel +** DONE Makefile [3/3] [100%] + CLOSED: [2019-09-30 Mon 20:05] + - [X] Org to Markdown + - [X] Add YAML to Markdown + - [X] Compile to PDF using Eisvogel +** TODO Update date in YAML automatically diff --git a/Docs/Project.pdf b/Docs/Project.pdf index 5a8efc1..36a7613 100644 Binary files a/Docs/Project.pdf and b/Docs/Project.pdf differ diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..f83024d --- /dev/null +++ b/Makefile @@ -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