From 8b3393b22755f542135f37dfc7ec0d4d14fb7d51 Mon Sep 17 00:00:00 2001 From: Ekaitz Zarraga Date: Mon, 4 Sep 2023 23:42:05 +0200 Subject: Makefile ftw --- Makefile | 14 ++++++++++++++ README.md | 8 ++++++-- es/1.md | 0 es/2.md | 0 4 files changed, 20 insertions(+), 2 deletions(-) create mode 100644 Makefile create mode 100644 es/1.md create mode 100644 es/2.md 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 diff --git a/README.md b/README.md index b2ce3ca..9b1f47b 100644 --- a/README.md +++ b/README.md @@ -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) diff --git a/es/1.md b/es/1.md new file mode 100644 index 0000000..e69de29 diff --git a/es/2.md b/es/2.md new file mode 100644 index 0000000..e69de29 -- cgit v1.2.3