1 all: libukeyboard-prefs.so ukeyboard-postinst.launch
3 libukeyboard-prefs.so
: prefs.o hw.o onscreen.o lang.o langset.o about.o
6 add_cflags
= `pkg-config --cflags gtk+-2.0 hildon-1 gconf-2.0 libosso`
9 $(CC
) -c
-W
-Wall
`pkg-config --cflags gtk+-2.0 gconf-2.0 hildon-control-panel libosso` -o
$@
$<
12 $(CC
) -c
-W
-Wall
$(add_cflags
) -o
$@
$<
14 onscreen.o
: onscreen.c
15 $(CC
) -c
-W
-Wall
$(add_cflags
) -o
$@
$<
18 $(CC
) -c
-W
-Wall
$(add_cflags
) -o
$@
$<
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/</\</g' -e 's/>/\>/g' -e 's/^.*title:[ \t]*\(.*\)/<i>\1:<\/i>\\n\\/' -e 's/^.*author:[ \t]*\(.*\)/\t\1\\n\\/' ; \
31 sed
-e
's/</\</g' -e
's/>/\>/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
53 rm -f
*.o libukeyboard-prefs.so about.inc about.data core ukeyboard-postinst.launch