diff options
Diffstat (limited to 'bindings/vala/Makefile.am')
-rw-r--r-- | bindings/vala/Makefile.am | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/bindings/vala/Makefile.am b/bindings/vala/Makefile.am index c4627f5..f80b48c 100644 --- a/bindings/vala/Makefile.am +++ b/bindings/vala/Makefile.am @@ -1,16 +1,18 @@ -SUBDIRS = . examples +if HAVE_INTROSPECTION +if HAVE_VAPIGEN +SUBDIRS = . examples ######################### # VAPI Files ######################### -if HAVE_INTROSPECTION - if USE_GTK3 GTKVAPI = gtk+-3.0 +VER=3 else GTKVAPI = gtk+-2.0 +VER= endif vapidir = $(datadir)/vala/vapi @@ -21,12 +23,14 @@ DEPS = $(GTKVAPI) $(vapiprefix).deps: echo $(DEPS) > $@ -$(vapiprefix).vapi: $(top_builddir)/src/AppIndicator$(VER)-0.1.gir $(vapiprefix).deps - $(VALA_API_GEN) --library=$(vapiprefix) \ - --pkg $(GTKVAPI) \ - $< +$(vapiprefix).vapi: $(top_builddir)/src/AppIndicator$(VER)-0.1.gir \ + $(top_builddir)/src/AppIndicator$(VER)-0.1.metadata \ + $(vapiprefix).deps + $(VALA_API_GEN) --library=$(vapiprefix) --girdir=$(srcdir)/src \ + $< CLEANFILES = $(vapi_DATA) endif +endif |