summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile20
1 files changed, 20 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..50b900a
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,20 @@
+LOC = it
+CC = pdflatex
+SRC != find * -name '*.tex'
+
+gtk4-book-${LOC}.pdf: main-${LOC}.tex ${SRC}
+ ${CC} main-${LOC}.tex
+# For some pacakge/tool we need to execute the command twice
+ ${CC} main-${LOC}.tex
+ @mv main-${LOC}.pdf $@
+
+main-${LOC}.tex: main.tex
+ @cp $> $@
+ @sed -i "" 's/LOC\//${LOC}\//' $@
+
+clean:
+ @rm -f *.log *.aux *.pdf
+ @rm -f main-*.tex
+
+english:
+ @make LOC=en