resume/Makefile

48 lines
988 B
Makefile
Raw Normal View History

2023-08-02 17:50:06 +03:00
color = 3EB489
photo = true
extra = true
build = $(CURDIR)/build
src = $(CURDIR)/tex
target = $(src)/main.tex
output = $(build)/main.pdf
outputen = $(build)/voronind_en.pdf
outputru = $(build)/voronind_ru.pdf
export RESUME_COLOR := $(color)
export RESUME_PHOTO := $(photo)
export RESUME_EXTRA := $(extra)
.PHONY: all
all: clean icon en ru view
.PHONY: clean
clean:
@rm -rf $(build)
.PHONY: icon
icon:
@mkdir -p $(build)/image;\
cd image/icon;\
for file in *; do convert "$$file" -fill "#$$RESUME_COLOR" -colorize 100 $(build)/image/"$$file" &> /dev/null || cp "$$file" $(build)/image/; done
.PHONY: en
2023-08-02 17:48:33 +03:00
en: icon
@mkdir -p $(build);\
cd $(src);\
export RESUME_LANG=en;\
lualatex --output-dir=$(build) $(target);\
mv $(output) $(outputen)
.PHONY: ru
2023-08-02 17:48:33 +03:00
ru: icon
@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)