Version bump (2.5-2)
[ukeyboard.git] / Makefile
blob645b45c702d33a1f809efa58b5efde64f2fd2258
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
37 $(MAKE) -C po DESTDIR=$(DESTDIR) install
39 clean:
40 $(MAKE) -C cpanel clean
41 $(MAKE) -C keyboards clean
42 $(MAKE) -C keyboards-scv clean
43 $(MAKE) -C ukbdcreator clean
44 $(MAKE) -C po clean
45 rm -f vkb_compiler *.o core
46 rm -rf build
48 distclean:
49 $(MAKE) clean
50 rm -f *-stamp
51 rm -rf debian/ukeyboard debian/ukbdcreator debian/files