forked from BoGoEngine/ibus-bogo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
35 lines (26 loc) · 875 Bytes
/
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
PREFIX = /usr
APP_ROOT = $(DESTDIR)$(PREFIX)/share/ibus-bogo
IBUS_ROOT = $(DESTDIR)$(PREFIX)/share/ibus
all:
run:
python3 ibus_engine/main.py
install:
# TODO: More fine-grain copying
mkdir --parent $(APP_ROOT)
cp -rf ibus_engine gui vncharsets bogo-python $(APP_ROOT)
mkdir --parent $(IBUS_ROOT)/component/
cp ibus_engine/data/bogo.xml $(IBUS_ROOT)/component/
sed -i \
-e "s|@EXEC_PATH@|$(APP_ROOT)/ibus_engine/main.py|g" \
-e "s|@ICON_PATH@|${APP_ROOT}/ibus_engine/data/ibus-bogo-dev.svg|g" \
-e "s|@SETUP_PATH@|${APP_ROOT}/gui/controller.py|g" \
$(IBUS_ROOT)/component/bogo.xml
uninstall:
rm -rf $(APP_ROOT)
rm -rf $(IBUS_ROOT)/component/bogo.xml
test:
# TODO: Some systems have nosetests, nosetests3.
nosetests3
deb:
script/build_debian.sh
.PHONY: all run install uninstall test deb