iosevka-prog-font-builder/Makefile

32 lines
1.0 KiB
Makefile
Raw Permalink 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
2023-08-05 05:19:20 +00:00
$(BUILD_DIR)/iosevka-prog-$(V).tar.xz: $(BUILD_DIR)/iosevka-prog/ttf/iosevka-prog-$(V)/*.ttf
cd $(BUILD_DIR)/iosevka-prog/ttf/iosevka-prog-$(V); tar Jcf $(BUILD_DIR)/iosevka-prog-$(V).tar.xz *.ttf
$(BUILD_DIR)/iosevka-prog-nerd-$(V).tar.xz: $(BUILD_DIR)/iosevka-prog/ttf/iosevka-prog-nerd-$(V)/*.ttf
cd $(BUILD_DIR)/iosevka-prog/ttf/iosevka-prog-nerd-$(V); tar Jcf $(BUILD_DIR)/iosevka-prog-nerd-$(V).tar.xz *.ttf
2023-01-16 11:34:20 +00:00
upload: dist
git tag $(V)
2023-05-15 09:34:44 +00:00
gitea-tea r c --repo f1x1t/iosevka-prog-font-builder -t $(V) --tag $(V) \
2023-08-05 05:19:20 +00:00
-a $(BUILD_DIR)/iosevka-prog-$(V).tar.xz \
-a $(BUILD_DIR)/iosevka-prog-nerd-$(V).tar.xz
2023-01-16 11:34:20 +00:00
git tag -d $(V)
git push
clean:
rm -rf $(BUILD_DIR)