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

View file

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