resume/Makefile

31 lines
548 B
Makefile
Raw Normal View History

build = $(CURDIR)/build
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:
@gio open $(targeten) $(targetru)