2023-08-02 17:20:47 +03:00
|
|
|
color = F44336
|
2023-07-31 04:30:43 +03:00
|
|
|
build = $(CURDIR)/build
|
2023-07-31 04:48:33 +03:00
|
|
|
src = $(CURDIR)/tex
|
|
|
|
target = $(src)/main.tex
|
|
|
|
output = $(build)/main.pdf
|
|
|
|
outputen = $(build)/voronind_en.pdf
|
|
|
|
outputru = $(build)/voronind_ru.pdf
|
2023-07-31 04:30:43 +03:00
|
|
|
|
2023-08-02 17:20:47 +03:00
|
|
|
export RESUME_COLOR := $(color)
|
|
|
|
|
|
|
|
|
2023-07-31 04:30:43 +03:00
|
|
|
.PHONY: all
|
2023-08-02 17:20:47 +03:00
|
|
|
all: clean image en ru view
|
2023-07-31 04:30:43 +03:00
|
|
|
|
|
|
|
.PHONY: clean
|
|
|
|
clean:
|
|
|
|
@rm -rf $(build)
|
|
|
|
|
2023-08-02 17:20:47 +03:00
|
|
|
.PHONY: image
|
|
|
|
image:
|
|
|
|
@mkdir -p $(build)/image;\
|
|
|
|
cd image/icon;\
|
|
|
|
for file in *; do convert "$$file" -fill "#$$RESUME_COLOR" -colorize 100 $(build)/image/"$$file"; done
|
|
|
|
|
2023-07-31 04:30:43 +03:00
|
|
|
.PHONY: en
|
2023-08-02 17:20:47 +03:00
|
|
|
en: image
|
2023-07-31 04:30:43 +03:00
|
|
|
@mkdir -p $(build);\
|
2023-07-31 04:48:33 +03:00
|
|
|
cd $(src);\
|
2023-07-31 04:30:43 +03:00
|
|
|
export RESUME_LANG=en;\
|
2023-07-31 04:48:33 +03:00
|
|
|
lualatex --output-dir=$(build) $(target);\
|
|
|
|
mv $(output) $(outputen)
|
2023-07-31 04:30:43 +03:00
|
|
|
|
|
|
|
.PHONY: ru
|
2023-08-02 17:20:47 +03:00
|
|
|
ru: image
|
2023-07-31 04:30:43 +03:00
|
|
|
@mkdir -p $(build);\
|
2023-07-31 04:48:33 +03:00
|
|
|
cd $(src);\
|
2023-07-31 04:30:43 +03:00
|
|
|
export RESUME_LANG=ru;\
|
2023-07-31 04:48:33 +03:00
|
|
|
lualatex --output-dir=$(build) $(target);\
|
|
|
|
mv $(output) $(outputru)
|
2023-07-31 04:30:43 +03:00
|
|
|
|
|
|
|
.PHONY: view
|
|
|
|
view:
|
2023-07-31 04:48:33 +03:00
|
|
|
@xdg-open $(outputen);\
|
|
|
|
xdg-open $(outputru)
|