2023-07-31 04:30:43 +03:00
|
|
|
build = $(CURDIR)/build
|
2023-07-31 04:33:02 +03:00
|
|
|
src = $(CURDIR)/main.tex
|
|
|
|
target = $(build)/main.pdf
|
2023-07-31 04:30:43 +03:00
|
|
|
targetru = $(build)/voronind_ru.pdf
|
|
|
|
targeten = $(build)/voronind_en.pdf
|
|
|
|
|
|
|
|
.PHONY: all
|
|
|
|
all: clean ru en view
|
|
|
|
|
|
|
|
.PHONY: clean
|
|
|
|
clean:
|
|
|
|
@rm -rf $(build)
|
|
|
|
|
|
|
|
.PHONY: en
|
|
|
|
en:
|
|
|
|
@mkdir -p $(build);\
|
|
|
|
export RESUME_LANG=en;\
|
|
|
|
lualatex --output-dir=$(build) $(src);\
|
|
|
|
mv $(target) $(targeten)
|
|
|
|
|
|
|
|
.PHONY: ru
|
|
|
|
ru:
|
|
|
|
@mkdir -p $(build);\
|
|
|
|
export RESUME_LANG=ru;\
|
|
|
|
lualatex --output-dir=$(build) $(src);\
|
|
|
|
mv $(target) $(targetru)
|
|
|
|
|
|
|
|
.PHONY: view
|
|
|
|
view:
|
2023-07-31 04:41:37 +03:00
|
|
|
@xdg-open $(targeten);\
|
|
|
|
xdg-open $(targetru)
|