-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
35 lines (26 loc) · 1.12 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
HUMA_RIME_DIR ?= ${HOME}/.local/share/fcitx5/rime
FCITX5_USER_DIR ?= ${HOME}/.local/share/fcitx5
build:
python transform.py $(HUMA_RIME_DIR)
libime_tabledict huma.txt huma.main.dict
libime_tabledict huma-ci.txt huma-ci.main.dict
libime_tabledict huma-full.txt huma-full.main.dict
libime_tabledict huma-ci-full.txt huma-ci-full.main.dict
deploy: build
mkdir -p $(FCITX5_USER_DIR)/inputmethod
cp huma{,-ci}{,-full}.conf $(FCITX5_USER_DIR)/inputmethod
cp huma{,-ci}{,-full}.main.dict $(FCITX5_USER_DIR)/table
ICON_DIR := ${HOME}/.local/share/icons/hicolor/
APP_NAME := fcitx-tiger
deploy_icons:
mkdir -p $(HOME)/.local/share/icons/hicolor/{16x16,24x24,48x48}/apps
for size in 16x16 24x24 48x48; do \
cp icons/tiger-$$size.png $(HOME)/.local/share/icons/hicolor/$$size/apps/fcitx-tiger.png; \
done
gtk-update-icon-cache -ft $(HOME)/.local/share/icons/hicolor/
ZIP_TARGETS = fcitx-huma.zip fcitx-huma-ci.zip fcitx-huma-full.zip fcitx-huma-ci-full.zip
.PHONY: $(ZIP_TARGETS)
zip: $(ZIP_TARGETS)
$(ZIP_TARGETS):
$(eval PART := $(patsubst fcitx-%,%,$(@:.zip=)))
zip -j $@ ${PART}.conf ${PART}.main.dict icons/fcitx-tiger.png