commit 49d84ee11a526ffa88bb792ff75bf605b08bdee1 parent 89163746e5900ca67170f9d9a039a4063b169fda Author: Ivan Gankevich <igankevich@ya.ru> Date: Fri, 29 Jun 2018 21:14:51 +0300 Update makefile. Diffstat:
.gitignore | | | 2 | ++ |
Makefile | | | 27 | +++++++++++++++++++++++++++ |
makefile | | | 22 | ---------------------- |
3 files changed, 29 insertions(+), 22 deletions(-)
diff --git a/.gitignore b/.gitignore @@ -0,0 +1,2 @@ +/build +*-converted-to.pdf diff --git a/Makefile b/Makefile @@ -0,0 +1,27 @@ +NAME = hpcs-15-subord + +FLAGS = \ + -interaction=nonstopmode \ + -output-directory=build \ + -pdf \ + -bibtex \ + -shell-escape + + +build/$(NAME).pdf: $(NAME).tex makefile + latexmk $(FLAGS) -f $< + +%.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 ./tree-11-eps-converted-to.pdf + rm -f ./startup-eps-converted-to.pdf + rm -f ./discovery-eps-converted-to.pdf + +build/$(NAME).pdf: ./tree-11.eps +build/$(NAME).pdf: ./startup.eps +build/$(NAME).pdf: ./discovery.eps diff --git a/makefile b/makefile @@ -1,22 +0,0 @@ -NAME = hpcs-15-subord - -$(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 ./tree-11-eps-converted-to.pdf - rm -f ./startup-eps-converted-to.pdf - rm -f ./discovery-eps-converted-to.pdf - -$(NAME).pdf: ./tree-11.eps -$(NAME).pdf: ./startup.eps -$(NAME).pdf: ./discovery.eps