From 8339f296e884c85cfe7f74f66a0d60323e6b7b9a Mon Sep 17 00:00:00 2001 From: Martyn Russell Date: Sun, 8 Jul 2012 17:00:43 +0100 Subject: [PATCH] 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 --- library/tests/Makefile.am | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/library/tests/Makefile.am b/library/tests/Makefile.am index fe0e86e..994c41e 100644 --- a/library/tests/Makefile.am +++ b/library/tests/Makefile.am @@ -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 $^