diff options
author | Ted Gould <ted@gould.cx> | 2011-02-10 22:25:25 -0600 |
---|---|---|
committer | Ted Gould <ted@gould.cx> | 2011-02-10 22:25:25 -0600 |
commit | 3d4fdfb100856205654c8926600207b01820391b (patch) | |
tree | 4d3c49cfd6d2c58aaec02ae636f619c695cfd504 /bindings/vala/examples/Makefile.am | |
parent | ac68d851252a8f3e76b294488676477aa5e4ba83 (diff) | |
parent | 596f48a0a0c29e683fb31bc837ff54b1b8ca7343 (diff) | |
download | libayatana-appindicator-3d4fdfb100856205654c8926600207b01820391b.tar.gz libayatana-appindicator-3d4fdfb100856205654c8926600207b01820391b.tar.bz2 libayatana-appindicator-3d4fdfb100856205654c8926600207b01820391b.zip |
New upstream release (0.2.95)
∘ Fixing build for GTK2/3 dual build
Diffstat (limited to 'bindings/vala/examples/Makefile.am')
-rw-r--r-- | bindings/vala/examples/Makefile.am | 36 |
1 files changed, 31 insertions, 5 deletions
diff --git a/bindings/vala/examples/Makefile.am b/bindings/vala/examples/Makefile.am index 32a695b..484a00a 100644 --- a/bindings/vala/examples/Makefile.am +++ b/bindings/vala/examples/Makefile.am @@ -1,13 +1,39 @@ +if USE_GTK3 +VER=3 +else +VER= +endif VALAFILES = indicator-example.vala -CLEANFILES = $(TESTS) *.c EXTRA_DIST = $(VALAFILES) -VALAFLAGS = --pkg appindicator-0.1 --vapidir=$(top_builddir)/bindings/vala --save-temps +VALAFLAGS = \ + --pkg appindicator$(VER)-0.1 \ + --vapidir=$(top_builddir)/bindings/vala \ + --save-temps if HAVE_VALAC -indicator-example: $(VALAFILES) Makefile.am - $(VALAC) $(VALAFLAGS) $(srcdir)/$(VALAFILES) -check: indicator-example +BUILT_SOURCES = indicator-example.c + +indicator-example.c: $(VALAFILES) Makefile.am + $(VALAC) $(VALAFLAGS) -C $< -o $@ + $(SED) -i "s|#include\s*<\s*libappindicator/app-indicator.h\s*>||g" $@ + +nodist_indicator_example_SOURCES = indicator-example.c +indicator_example_CFLAGS = \ + $(LIBRARY_CFLAGS) \ + -Wall -Werror \ + -I$(top_srcdir)/src \ + -include $(top_srcdir)/src/app-indicator.h +indicator_example_LDADD = \ + $(LIBRARY_LIBS) \ + $(top_builddir)/src/libappindicator$(VER).la + +check_PROGRAMS = indicator-example + +CLEANFILES = \ + *.c \ + indicator-example + endif |