summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJürg Billeter <j@bitron.ch>2009-05-15 15:50:59 +0200
committerRalf Wildenhues <Ralf.Wildenhues@gmx.de>2009-05-17 10:18:19 +0200
commitb9d837379de93389244d75dfbcb6d33ed66d4f9f (patch)
treea26b97e7bc400385ba63e673dd1ca8ac8519617b /tests
parentb629ff7b3ed15c44147ebe87e1afb554f22e83a9 (diff)
downloadautomake-b9d837379de93389244d75dfbcb6d33ed66d4f9f.tar.gz
Vala: Add and test rebuild rules for generated header and vapi files.
valac will generate additional files when using, for example, -H in VALAFLAGS. We need to recognize these options and add appropriate rebuild rules to fix parallel build. * automake.in (lang_vala_finish_target): Recognize -H, -h, --header, --internal-header, --vapi, --internal-api, --gir flags to valac and rebuild rules for generated headers; distribute and maintainer-clean them. * tests/vala2.test: Test rebuild rules. Signed-off-by: Jürg Billeter <j@bitron.ch> Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
Diffstat (limited to 'tests')
-rwxr-xr-xtests/vala2.test6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/vala2.test b/tests/vala2.test
index a6efba98a..bfa38cd3b 100755
--- a/tests/vala2.test
+++ b/tests/vala2.test
@@ -44,6 +44,7 @@ END
cat > 'src/Makefile.am' <<'END'
bin_PROGRAMS = zardoz
+zardoz_VALAFLAGS = -H zardoz.h
zardoz_CFLAGS = $(GOBJECT_CFLAGS)
zardoz_LDADD = $(GOBJECT_LIBS)
zardoz_SOURCES = zardoz.vala
@@ -67,6 +68,11 @@ $AUTOMAKE -a
./configure || Exit 77
$MAKE
+
+# test rebuild rules
+rm src/zardoz.h
+$MAKE -C src zardoz.h
+
$MAKE distcheck
$MAKE distclean
mkdir build