diff options
author | 2023-01-23 18:10:47 +0100 | |
---|---|---|
committer | 2023-01-23 18:10:47 +0100 | |
commit | f1abbdd64c18775e1a8858c6cbc592bbdb259494 (patch) | |
tree | 5ac30ff0995aae01097c66823a8d6ac6cdf0757c /Makefile | |
download | gtk4-f1abbdd64c18775e1a8858c6cbc592bbdb259494.tar.gz gtk4-f1abbdd64c18775e1a8858c6cbc592bbdb259494.zip |
Initial commit
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 20 |
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 |