Don't try to build test-vala-lang if !HAVE_INTROSPECTION or !ENABLE_VAPIGEN

* libsecret-@SECRET_MAJOR@.vapi is built only with those 2 defines and these
  were not checked before depending that target for the test case

Found during jhbuild run
This commit is contained in:
Martyn Russell 2012-07-08 17:00:43 +01:00
parent 5ecab6d33b
commit 8339f296e8

View File

@ -75,10 +75,16 @@ VALA_V = $(VALA_V_$(V))
VALA_V_ = $(VALA_V_$(AM_DEFAULT_VERBOSITY))
VALA_V_0 = @echo " VALAC " $^;
if HAVE_INTROSPECTION
if ENABLE_VAPIGEN
VALA_TESTS = \
test-vala-lang \
$(NULL)
endif
endif
test-vala-lang.c: test-vala-lang.vala libsecret-@SECRET_MAJOR@.vapi mock-service-0.vapi
$(VALA_V)$(VALAC) -C --pkg gio-2.0 $^