Added dependency to version of hildon-im-fkb provided by PR1.2 due the the changes...
[ukeyboard.git] / cpanel / Makefile
blob8c822ea602ea3b1bb31607e09c7b94eeb1bdf9b0
1 all: libukeyboard-prefs.so ukeyboard-postinst.launch
3 libukeyboard-prefs.so: prefs.o hw.o onscreen.o lang.o langset.o about.o
4 $(CC) -shared -o $@ $+
6 add_cflags = `pkg-config --cflags gtk+-2.0 hildon-1 gconf-2.0 libosso`
8 prefs.o: prefs.c
9 $(CC) -c -W -Wall `pkg-config --cflags gtk+-2.0 gconf-2.0 hildon-control-panel libosso` -o $@ $<
11 hw.o: hw.c
12 $(CC) -c -W -Wall $(add_cflags) -o $@ $<
14 onscreen.o: onscreen.c
15 $(CC) -c -W -Wall $(add_cflags) -o $@ $<
17 lang.o: lang.c
18 $(CC) -c -W -Wall $(add_cflags) -o $@ $<
20 langset.o: langset.c
21 $(CC) -c -W -Wall $(add_cflags) -o $@ $<
23 about.o: about.c about.inc
24 $(CC) -c -W -Wall $(add_cflags) -o $@ $<
26 about.inc: about.inc.in
27 # for f in ../keyboards/*; do \
28 # grep '^[ \t]*#[ \t]*\(title:\|author:\)' $$f | \
29 # sed -e 's/</\&lt;/g' -e 's/>/\&gt;/g' -e 's/^.*title:[ \t]*\(.*\)/<i>\1:<\/i>\\n\\/' -e 's/^.*author:[ \t]*\(.*\)/\t\1\\n\\/' ; \
30 # done > about.data
31 sed -e 's/</\&lt;/g' -e 's/>/\&gt;/g' -e 's/$$/\\n\\/' < ../CREDITS > about.data
32 sed -e s/@@VERSION@@/`cat ../VERSION`/g -e '/@@CONTRIB@@/r about.data' -e '/@@CONTRIB@@/d' < about.inc.in > about.inc
34 cppluginlibdir = $(DESTDIR)`pkg-config hildon-control-panel --variable=pluginlibdir`
35 cpplugindeskdir = $(DESTDIR)`pkg-config hildon-control-panel --variable=plugindesktopentrydir`
37 ukeyboard-postinst.launch:
38 $(CC) -W -Wall -shared -rdynamic `pkg-config --cflags --libs gtk+-2.0 hildon-1` ukeyboard-postinst.c -o $@
39 strip ukeyboard-postinst.launch
41 install: libukeyboard-prefs.so
42 install -d $(cppluginlibdir) $(cpplugindeskdir)
43 install libukeyboard-prefs.so $(cppluginlibdir)
44 install -m 644 ukeyboard-prefs.desktop $(cpplugindeskdir)
45 install -d $(DESTDIR)/usr/libexec $(DESTDIR)/etc/sudoers.d
46 install ukeyboard-set $(DESTDIR)/usr/libexec
47 install -m 644 ukeyboard.sudoers $(DESTDIR)/etc/sudoers.d
48 install -d $(DESTDIR)/usr/bin
49 install ukeyboard-postinst.launch $(DESTDIR)/usr/bin
50 ln -s maemo-invoker $(DESTDIR)/usr/bin/ukeyboard-postinst
52 clean:
53 rm -f *.o libukeyboard-prefs.so about.inc about.data core ukeyboard-postinst.launch