http://mulliner.org/bluetooth/xkbdbthid-0.1_src.tar.gz
[xkbdbthid.git] / Makefile
1 BIN=$(DESTDIR)/usr/bin/
2 SHARE=$(DESTDIR)/usr/share/xkbdbthid
3 IMG=$(DESTDIR)/usr/share/xkbdbthid/img
4 APPDIR = $(DESTDIR)/usr/share/applications/hildon
5 ETCDIR = $(DESTDIR)/etc/others-menu/extra_applications
6
7 all:
8         cd bthid/xkbdbthidwrapper; make
9         cd xkbd-0.8.15_bthid; ./configure; cd src; make -f makefile
10
11 clean:
12         cd bthid/xkbdbthidwrapper; make clean
13         cd xkbd-0.8.15_bthid; make distclean
14
15 install: all
16         install -d $(BIN)
17         install -d $(SHARE)
18         install -d $(ETCDIR)
19         install -d $(APPDIR)
20         install -d $(IMG)
21         install ./bthid/img/return.xpm $(IMG)
22         install ./bthid/img/shift.xpm $(IMG)
23         install ./bthid/img/tab.xpm $(IMG)
24         install ./bthid/img/backspace.xpm $(IMG)
25         install ./bthid/xkbdbthidwrapper/xkbdbthid.sh $(BIN)
26         install -m 644 ./bthid/en_US.qwerty.xkbd $(SHARE)
27         install ./xkbd-0.8.15_bthid/src/xkbdbthid $(BIN)
28         install -o root -m 4555 ./bthid/xkbdbthidwrapper/xkbdbthidwrapper $(BIN)
29         install ./osso-xkbdbthid.desktop $(APPDIR)
30         install ./osso-xkbdbthid.desktop $(ETCDIR)/0301_osso-xkbdbthid.desktop