2023-07-31 04:30:43 +03:00
|
|
|
build = $(CURDIR)/build
|
2023-07-31 04:48:33 +03:00
|
|
|
src = $(CURDIR)/tex
|
|
|
|
target = $(src)/main.tex
|
|
|
|
output = $(build)/main.pdf
|
|
|
|
outputen = $(build)/voronind_en.pdf
|
|
|
|
outputru = $(build)/voronind_ru.pdf
|
2023-07-31 04:30:43 +03:00
|
|
|
|
|
|
|
.PHONY: all
|
2023-08-01 20:01:24 +03:00
|
|
|
all: clean en ru view
|
2023-07-31 04:30:43 +03:00
|
|
|
|
|
|
|
.PHONY: clean
|
|
|
|
clean:
|
|
|
|
@rm -rf $(build)
|
|
|
|
|
|
|
|
.PHONY: en
|
|
|
|
en:
|
|
|
|
@mkdir -p $(build);\
|
2023-07-31 04:48:33 +03:00
|
|
|
cd $(src);\
|
2023-07-31 04:30:43 +03:00
|
|
|
export RESUME_LANG=en;\
|
2023-07-31 04:48:33 +03:00
|
|
|
lualatex --output-dir=$(build) $(target);\
|
|
|
|
mv $(output) $(outputen)
|
2023-07-31 04:30:43 +03:00
|
|
|
|
|
|
|
.PHONY: ru
|
|
|
|
ru:
|
|
|
|
@mkdir -p $(build);\
|
2023-07-31 04:48:33 +03:00
|
|
|
cd $(src);\
|
2023-07-31 04:30:43 +03:00
|
|
|
export RESUME_LANG=ru;\
|
2023-07-31 04:48:33 +03:00
|
|
|
lualatex --output-dir=$(build) $(target);\
|
|
|
|
mv $(output) $(outputru)
|
2023-07-31 04:30:43 +03:00
|
|
|
|
|
|
|
.PHONY: view
|
|
|
|
view:
|
2023-07-31 04:48:33 +03:00
|
|
|
@xdg-open $(outputen);\
|
|
|
|
xdg-open $(outputru)
|