move tex files into separate directory.

This commit is contained in:
Dmitry Voronin 2023-07-31 04:48:33 +03:00
parent f23653df06
commit aee04b95de
7 changed files with 15 additions and 12 deletions

View file

@ -1,11 +1,12 @@
build = $(CURDIR)/build
src = $(CURDIR)/main.tex
target = $(build)/main.pdf
targetru = $(build)/voronind_ru.pdf
targeten = $(build)/voronind_en.pdf
src = $(CURDIR)/tex
target = $(src)/main.tex
output = $(build)/main.pdf
outputen = $(build)/voronind_en.pdf
outputru = $(build)/voronind_ru.pdf
.PHONY: all
all: clean ru en view
all: clean en ru view
.PHONY: clean
clean:
@ -14,18 +15,20 @@ clean:
.PHONY: en
en:
@mkdir -p $(build);\
cd $(src);\
export RESUME_LANG=en;\
lualatex --output-dir=$(build) $(src);\
mv $(target) $(targeten)
lualatex --output-dir=$(build) $(target);\
mv $(output) $(outputen)
.PHONY: ru
ru:
@mkdir -p $(build);\
cd $(src);\
export RESUME_LANG=ru;\
lualatex --output-dir=$(build) $(src);\
mv $(target) $(targetru)
lualatex --output-dir=$(build) $(target);\
mv $(output) $(outputru)
.PHONY: view
view:
@xdg-open $(targeten);\
xdg-open $(targetru)
@xdg-open $(outputen);\
xdg-open $(outputru)

View file

@ -30,7 +30,7 @@
linktoc = all
}
\graphicspath{ {./image} } % specify where images are stored.
\graphicspath{ {../image} } % specify where images are stored.
\babelprovide[import]{russian} % add russian support.
\babelfont{rm}{montserrat} % use custom serif font for english.