diff options
author | Ekaitz Zarraga <ekaitz@elenq.tech> | 2023-09-04 23:42:05 +0200 |
---|---|---|
committer | Ekaitz Zarraga <ekaitz@elenq.tech> | 2023-09-05 10:38:31 +0200 |
commit | 8b3393b22755f542135f37dfc7ec0d4d14fb7d51 (patch) | |
tree | b05645b9d1a623402494eeccdf9e457ab7c39bb1 | |
parent | bc8b3b65c592cf8c8345569bce8650b45695be57 (diff) |
Makefile ftw
-rw-r--r-- | Makefile | 14 | ||||
-rw-r--r-- | README.md | 8 | ||||
-rw-r--r-- | es/1.md | 0 | ||||
-rw-r--r-- | es/2.md | 0 |
4 files changed, 20 insertions, 2 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..def8f44 --- /dev/null +++ b/Makefile @@ -0,0 +1,14 @@ +all: eu es + +eu: pdf/eu/1.pdf pdf/eu/2.pdf +es: pdf/es/1.pdf pdf/es/2.pdf + +pdf/%.pdf: %.md template.tex + mkdir -p $(@D) + pandoc -f markdown+smart -t beamer $< -o $@ --pdf-engine=xelatex \ + --template="template.tex" + +clean: + rm -rf pdf + +.PHONY: all clean @@ -7,6 +7,10 @@ folder: - `es`: Spanish translation Each of the files has a note in the metadata indicating how to build it to PDF. -They expect to be run from the project root folder. +They expect to be run from the project root folder. In any case the Makefile in +the root directory knows how to build them. -> NOTE: This might be automated in the future +Use `make $LANG` to build the language you want or `make all` if you are a +polyglot. + +> Using `make`'s `-j$JOBS` flag might help (builds are slow) |