cps-14-load-balance

git clone https://git.igankevich.com/cps-14-load-balance.git
Log | Files | Refs

commit e2505498024dcf2bada0ce02e7eaff1c3b71a551
parent e0b0cd220a4a9f3763a485b0503af8dd87ca434a
Author: Ivan Gankevich <igankevich@ya.ru>
Date:   Fri, 29 Jun 2018 21:21:19 +0300

Modern makefile.

Diffstat:
.gitignore | 5+++++
Makefile | 26++++++++++++++++++--------
2 files changed, 23 insertions(+), 8 deletions(-)

diff --git a/.gitignore b/.gitignore @@ -0,0 +1,5 @@ +*-converted-to.pdf +*.tar.gz +/build +/overlap.eps +/performance.eps diff --git a/Makefile b/Makefile @@ -1,22 +1,32 @@ NAME=gankevich NEW_NAME=cps-14-load-balance -$(NEW_NAME).pdf: $(NAME).pdf - cp -uv $(NAME).pdf $(NEW_NAME).pdf +FLAGS = \ + -interaction=nonstopmode \ + -output-directory=build \ + -pdf \ + -bibtex \ + -shell-escape -$(NAME).pdf: $(NAME).tex performance.eps overlap.eps - pdflatex $(NAME).tex - pdflatex $(NAME).tex - pdflatex $(NAME).tex +build/$(NEW_NAME).pdf: build/$(NAME).pdf + cp -uv $< $@ + +build/$(NAME).pdf: build/$(NAME).tex performance.eps overlap.eps + latexmk $(FLAGS) -f $< %.eps: %.svg inkscape --file=$< --without-gui --export-eps=$@ -$(NAME).tex: $(NAME)_utf8.tex - iconv -f utf8 -t cp1251 <$(NAME)_utf8.tex >$(NAME).tex +build/$(NAME).tex: $(NAME)_utf8.tex build + iconv -f utf8 -t cp1251 < $< > $@ clean: rm -f $(NAME).log $(NAME).aux $(NAME).pdf *-converted-to.pdf rm -f *.eps *.nav *.out *.toc *.snm rm -f $(NAME).tex rm -f $(NEW_NAME).pdf + +build: + mkdir -p build + +.PHONY: clean build