iosevka-prog-font-builder/Makefile

28 lines
749 B
Makefile
Raw Normal View History

2023-01-16 11:34:20 +00:00
V:=$(shell grep -F "IOSEVKA_VERSION=" build-iosevka-prog-font.sh | sed 's/.*=//')
TOP_DIR:=$(shell pwd)
BUILD_DIR:=$(TOP_DIR)/dist
2023-01-16 12:10:02 +00:00
all: v
2023-01-16 11:34:20 +00:00
./build-iosevka-prog-font.sh
2023-01-16 12:10:02 +00:00
v:
sed -i "s/\[[0-9][0-9.]\+/\[$V/g" $(TOP_DIR)/README.md
sed -i "s/\/[0-9][0-9.]\+/\/$V/g" $(TOP_DIR)/README.md
sed -i "s/[0-9][0-9.]\+tar/$V.tar/g" $(TOP_DIR)/README.md
2023-01-16 11:34:20 +00:00
dist: $(BUILD_DIR)/iosevka-prog-$(V).tar.xz
$(BUILD_DIR)/iosevka-prog-$(V).tar.xz: $(BUILD_DIR)/iosevka-prog/ttf/*.ttf
cd $(BUILD_DIR)/iosevka-prog/ttf; tar Jcf $(BUILD_DIR)/iosevka-prog-$(V).tar.xz *.ttf
upload: dist
git tag $(V)
tea r c --repo f1x1t/iosevka-prog-font-builder -t $(V) --tag $(V) \
-a $(BUILD_DIR)/iosevka-prog-$(V).tar.xz
git tag -d $(V)
git push
clean:
rm -rf $(BUILD_DIR)