resume/Makefile

35 lines
610 B
Makefile
Raw Permalink Normal View History

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