commit 2971331412372085c38547796bb4cc1bb51b8bff parent da1fb71a8bc165519d8fff324e62ae69457a3d7d Author: Ivan Gankevich <i.gankevich@spbu.ru> Date: Wed, 11 Dec 2019 12:24:47 +0300 Latexmk. Diffstat:
.gitignore | | | 1 | + |
Makefile | | | 31 | +++++++++++++++++++++++++++++++ |
makefile | | | 22 | ---------------------- |
3 files changed, 32 insertions(+), 22 deletions(-)
diff --git a/.gitignore b/.gitignore @@ -0,0 +1 @@ +/build diff --git a/Makefile b/Makefile @@ -0,0 +1,31 @@ +NAME = iccsa-16-factory + +LATEXMK = env max_print_line=1000 texfot \ + --no-stderr --quiet \ + --ignore '.*This is XeTeX, Version.*' \ + --ignore '.*Output written on.*' \ + latexmk + +FLAGS = \ + -8bit \ + -interaction=nonstopmode \ + -output-directory=build \ + -pdf \ + -xelatex \ + -bibtex \ + -shell-escape + +build/main.pdf: iccsa-16-factory.tex +build/main.pdf: llncs.cls +build/main.pdf: refs.bib +build/main.pdf: splncs03.bst +build/main.pdf: graphics/factory-3000.eps +build/main.pdf: graphics/factory-6000.eps +build/main.pdf: graphics/spec.eps +build/main.pdf: + @mkdir -p build + @printf "%20s %s\n" "latex->pdf" $< + @-$(LATEXMK) $(FLAGS) -f $< + +clean: + @rm -rf build diff --git a/makefile b/makefile @@ -1,22 +0,0 @@ -NAME = iccsa-16-factory - -$(NAME).pdf: $(NAME).tex makefile - pdflatex $(NAME) - pdflatex $(NAME) - ls *.bib 2>/dev/null && bibtex $(NAME) || true - pdflatex $(NAME) - -%.eps: %.svg - inkscape --without-gui --export-eps=$@ $< - -clean: - rm -f $(NAME).log $(NAME).aux $(NAME).pdf *-converted-to.pdf - rm -f $(NAME).nav $(NAME).snm $(NAME).toc $(NAME).out - rm -f $(NAME).bbl $(NAME).blg $(NAME).vrb - rm -f ./graphics/spec-eps-converted-to.pdf - rm -f ./graphics/factory-3000-eps-converted-to.pdf - rm -f ./graphics/factory-6000-eps-converted-to.pdf - -$(NAME).pdf: ./graphics/spec.eps -$(NAME).pdf: ./graphics/factory-3000.eps -$(NAME).pdf: ./graphics/factory-6000.eps