Version bump (2.2-4)
[ukeyboard.git] / Makefile
blob692e32eda6ef6de5cce49a344ba24b4287686b1d
1 all: vkb_compiler ukeyboard-prefs keyboards keyboards-scv ukbdcreator
3 ukeyboard-prefs:
4 $(MAKE) -C cpanel
6 vkb_compiler: vkb_compiler.o vkb_compiler_lib.o
7 $(CC) -o $@ $+
9 vkb_compiler.o: vkb_compiler.c vkb_compiler.h
10 $(CC) -W -Wall -c -o $@ $<
12 vkb_compiler_lib.o: vkb_compiler_lib.c vkb_compiler.h
13 $(CC) -W -Wall -c -o $@ $<
15 keyboards: vkb_compiler
16 $(MAKE) -C keyboards
18 keyboards-scv: vkb_compiler
19 $(MAKE) -C keyboards-scv
21 ukbdcreator: vkb_compiler_lib.o
22 $(MAKE) -C ukbdcreator
24 install: ukeyboard-prefs keyboards-scv
25 $(MAKE) -C cpanel DESTDIR=$(DESTDIR) install
26 $(MAKE) -C keyboards DESTDIR=$(DESTDIR) install
27 $(MAKE) -C keyboards-scv DESTDIR=$(DESTDIR) install
28 install -d $(DESTDIR)/usr/share/ukbdcreator
29 install -m 0644 doc/howto.txt doc/vkb-format-v3 doc/template.def $(DESTDIR)/usr/share/ukbdcreator/
30 install -d $(DESTDIR)/usr/share/icons/hicolor/48x48/apps
31 install -m 0644 ukeyboard.png $(DESTDIR)/usr/share/icons/hicolor/48x48/apps/
32 install -d $(DESTDIR)/usr/share/X11/xkb/symbols/nokia_vndr
33 install -m 0644 xkb/symbols/ukeyboard $(DESTDIR)/usr/share/X11/xkb/symbols/nokia_vndr/
34 install -d $(DESTDIR)/usr/share/X11/xkb/types
35 install -m 0644 xkb/types/ukeyboard $(DESTDIR)/usr/share/X11/xkb/types/
36 $(MAKE) -C ukbdcreator DESTDIR=$(DESTDIR) install
38 clean:
39 $(MAKE) -C cpanel clean
40 $(MAKE) -C keyboards clean
41 $(MAKE) -C keyboards-scv clean
42 $(MAKE) -C ukbdcreator clean
43 rm -f vkb_compiler *.o core
44 rm -rf build
46 distclean:
47 $(MAKE) clean
48 rm -f *-stamp
49 rm -rf debian/ukeyboard debian/ukbdcreator debian/files