resume/Makefile

48 lines
987 B
Makefile
Raw Normal View History

2024-03-06 02:04:10 +03:00
color = F44336
photo = true
2024-03-06 02:04:10 +03:00
extra = true
build = $(CURDIR)/build
src = $(CURDIR)/tex
2024-03-06 02:04:10 +03:00
target = $(src)/Main.tex
2024-03-06 01:12:17 +03:00
output = $(build)/Main.pdf
outputen = $(build)/VoronindEn.pdf
outputru = $(build)/VoronindRu.pdf
export RESUME_COLOR := $(color)
export RESUME_PHOTO := $(photo)
export RESUME_EXTRA := $(extra)
.PHONY: all
2023-08-09 18:56:02 +03:00
all: clean icon en ru open
.PHONY: clean
2024-03-06 01:12:17 +03:00
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)
2023-08-09 18:56:02 +03:00
.PHONY: open
open:
@xdg-open $(outputen);\
xdg-open $(outputru)