resume/Makefile

32 lines
561 B
Makefile
Raw Normal View History

build = $(CURDIR)/build
2023-07-31 04:33:02 +03:00
src = $(CURDIR)/main.tex
target = $(build)/main.pdf
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:
@xdg-open $(targeten);\
xdg-open $(targetru)