summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEkaitz Zarraga <ekaitz@elenq.tech>2023-09-04 23:42:05 +0200
committerEkaitz Zarraga <ekaitz@elenq.tech>2023-09-05 10:38:31 +0200
commit8b3393b22755f542135f37dfc7ec0d4d14fb7d51 (patch)
treeb05645b9d1a623402494eeccdf9e457ab7c39bb1
parentbc8b3b65c592cf8c8345569bce8650b45695be57 (diff)
Makefile ftw
-rw-r--r--Makefile14
-rw-r--r--README.md8
-rw-r--r--es/1.md0
-rw-r--r--es/2.md0
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
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
--- /dev/null
+++ b/es/1.md
diff --git a/es/2.md b/es/2.md
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/es/2.md