From f1abbdd64c18775e1a8858c6cbc592bbdb259494 Mon Sep 17 00:00:00 2001 From: Alessandro Iezzi Date: Mon, 23 Jan 2023 18:10:47 +0100 Subject: Initial commit --- Makefile | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 Makefile (limited to 'Makefile') 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 -- cgit v1.2.3