aboutsummaryrefslogtreecommitdiff
path: root/example/Makefile.am
diff options
context:
space:
mode:
authorLuke Yelavich <luke.yelavich@canonical.com>2011-02-11 07:47:26 +1100
committerLuke Yelavich <luke.yelavich@canonical.com>2011-02-11 07:47:26 +1100
commitb63c137778bbec1fb010f095e08750817744fced (patch)
tree960f8b383fdc012dcaeb689c58484f1009eae1ec /example/Makefile.am
parentfffab2e1e8d991a41cc591ceaca77c8a40f31f33 (diff)
parent409fc00a5a2f60dad3c1adb62d82c896cdfb2a2a (diff)
downloadlibayatana-appindicator-b63c137778bbec1fb010f095e08750817744fced.tar.gz
libayatana-appindicator-b63c137778bbec1fb010f095e08750817744fced.tar.bz2
libayatana-appindicator-b63c137778bbec1fb010f095e08750817744fced.zip
Merge from trunk
Diffstat (limited to 'example/Makefile.am')
-rw-r--r--example/Makefile.am29
1 files changed, 28 insertions, 1 deletions
diff --git a/example/Makefile.am b/example/Makefile.am
index 0900baf..606317c 100644
--- a/example/Makefile.am
+++ b/example/Makefile.am
@@ -4,9 +4,11 @@ else
VER=
endif
+CLEANFILES =
check_PROGRAMS = \
- simple-client
+ simple-client \
+ simple-client-vala
#########################################
## simple-client
@@ -27,3 +29,28 @@ simple_client_LDADD = \
EXTRA_DIST = \
simple-client-test-icon.png
+
+#########################################
+## simple-client-vala
+#########################################
+if HAVE_VALAC
+
+VALAFLAGS = \
+ --pkg appindicator$(VER)-0.1 \
+ --vapidir=$(top_builddir)/bindings/vala
+
+BUILT_SOURCES = simple-client-vala.c
+simple-client-vala.c: $(srcdir)/simple-client-vala.vala
+ $(VALAC) $(VALAFLAGS) -C $< -o $@
+ $(SED) -i "s|#include\s*<\s*libappindicator/app-indicator.h\s*>||g" $@
+
+simple_client_vala_SOURCES = simple-client-vala.c
+simple_client_vala_CFLAGS = \
+ $(simple_client_CFLAGS) \
+ -include $(top_srcdir)/src/app-indicator.h
+
+simple_client_vala_LDADD = $(simple_client_LDADD)
+
+CLEANFILES += *.stamp *-vala.c
+
+endif