Add a script 'check_headers_and_includes' to check that #include directives
are not against the grain.
Wrap this script together with 'check_makefile_consistency' into
'post_regtest_checks' and invoke that from the toplevel Makefile. So we can
easily add new checkers in the future.
Add a new make target 'post-regtest-checks' to just run those checks
and nothing else.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13570 a5019735-40e9-0310-863c-91ae7b9d1cf9
diff --git a/Makefile.am b/Makefile.am
index 498463e..28087d9 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -67,15 +67,17 @@
cat $(DEFAULT_SUPP_FILES) >> default.supp
## Preprend @PERL@ because tests/vg_regtest isn't executable
-## Ensure make exits with error if PERL fails or check_makefile_consistency fails.
+## Ensure make exits with error if PERL fails or post_regtest_checks fails.
regtest: check
gdbserver_tests/make_local_links $(GDB)
if @PERL@ tests/vg_regtest gdbserver_tests $(TOOLS) $(EXP_TOOLS) ; then \
- tests/check_makefile_consistency gdbserver_tests $(TOOLS) $(EXP_TOOLS); \
+ tests/post_regtest_checks $(abs_top_srcdir) gdbserver_tests $(TOOLS) $(EXP_TOOLS); \
else \
- tests/check_makefile_consistency gdbserver_tests $(TOOLS) $(EXP_TOOLS); \
+ tests/post_regtest_checks $(abs_top_srcdir) gdbserver_tests $(TOOLS) $(EXP_TOOLS); \
false; \
fi
+post-regtest-checks:
+ tests/post_regtest_checks $(abs_top_srcdir) gdbserver_tests $(TOOLS) $(EXP_TOOLS)
nonexp-regtest: check
@PERL@ tests/vg_regtest $(TOOLS)
exp-regtest: check