-
Notifications
You must be signed in to change notification settings - Fork 4
/
Makefile
30 lines (26 loc) · 1.16 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
# only really known to work on ubuntu, if you're using anything else, hopefully
# it should at least give you a clue how to install it by hand
PREFIX ?= /usr
SYSCONFDIR ?= /etc
DATADIR ?= $(PREFIX)/share
DESTDIR ?=
PYTHON ?= /usr/bin/python3
install:
install -m 0755 -d $(DESTDIR)$(DATADIR)/iwubi $(DESTDIR)$(SYSCONFDIR)/xdg/iwubi $(DESTDIR)$(DATADIR)/ibus/component
install -m 0644 iwubi.svg $(DESTDIR)$(DATADIR)/iwubi
install -m 0755 iwubi.py $(DESTDIR)$(DATADIR)/iwubi
install -m 0644 wubi-jidian86.db $(DESTDIR)$(DATADIR)/iwubi
install -m 0644 config.py $(DESTDIR)$(DATADIR)/iwubi
install -m 0644 logconfig.py $(DESTDIR)$(DATADIR)/iwubi
install -m 0644 logconfig.yaml $(DESTDIR)$(DATADIR)/iwubi
install -m 0644 iwubi.xml $(DESTDIR)$(DATADIR)/ibus/component
uninstall:
rm -f $(DESTDIR)$(DATADIR)/iwubi/iwubi.svg
rm -f $(DESTDIR)$(DATADIR)/iwubi/iwubi.py
rm -f $(DESTDIR)$(DATADIR)/iwubi/wubi-jidian86.db
rm -f $(DESTDIR)$(DATADIR)/iwubi/config.py
rm -f $(DESTDIR)$(DATADIR)/iwubi/logconfig.yaml
rm -f $(DESTDIR)$(DATADIR)/iwubi/logconfig.py
rmdir $(DESTDIR)$(DATADIR)/iwubi
rmdir $(DESTDIR)$(SYSCONFDIR)/xdg/iwubi
rm -f $(DESTDIR)$(DATADIR)/ibus/component/iwubi.xml