summaryrefslogtreecommitdiff
path: root/tests/local.mk
diff options
context:
space:
mode:
authorAkim Demaille <demaille@gostai.com>2012-02-13 18:23:45 +0100
committerAkim Demaille <demaille@gostai.com>2012-02-14 21:00:59 +0100
commit360ae94ebc3f25f93c44ed6e6f65730afa56ff63 (patch)
tree8f750f3e58e2c2db67071033e35df24f44545da8 /tests/local.mk
parent72c12bfa1b675dff82689ace48d09f57b317db74 (diff)
downloadbison-360ae94ebc3f25f93c44ed6e6f65730afa56ff63.tar.gz
maint: de-recurse the handling of examples
The directory was still using a local Makefile.am because it provides "scoped" Make variables: these examples are not meant to use the same CPPFLAGS etc. If we were to use the same -I set, we'd pick up gnulib's stdio.h for instance, which we do not want for these simple examples. Yet, as a result, the dependencies are less accurate, there is code duplication, etc. This is especially perceptible when trying to extract more examples from the documentation, as will be done in forthcoming changes. In order to make the tuning of CPPFLAGS easier, discard the predefined -I from Automake. * examples/calc++/Makefile.am: Rename as... * examples/calc++/local.mk: this. Adjust the paths which are now rooted in top_srcdir/top_builddir. Handle BISON_CXX_WORKS here, instead of the too crude previous approach that completely discarded the whole directory. ($(BISON)): Remove now useless bouncing recipe. (calc___CPPFLAGS): New. Stay away from -Ilib. * Makefile.am, configure.ac, examples/local.mk, * examples/calc++/test: Adjust. * configure.ac: Pass nostdinc to Automake. * src/local.mk, lib/local.mk (AM_CPPFLAGS): Move to... * Makefile.am: here. * src/local.mk, examples/calc++/Makefile.am (BISON, BISON_IN): Factor to... * Makefile.am: here. * tests/local.mk: Use it.
Diffstat (limited to 'tests/local.mk')
-rw-r--r--tests/local.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/local.mk b/tests/local.mk
index 18734f37..5bb587d6 100644
--- a/tests/local.mk
+++ b/tests/local.mk
@@ -83,7 +83,7 @@ check-local: tests/atconfig tests/atlocal $(TESTSUITE)
# Move into tests/ so that testsuite.dir etc. be created there.
$(RUN_TESTSUITE)
-check_SCRIPTS = tests/bison
+check_SCRIPTS = $(BISON)
# Run the test suite on the *installed* tree.
installcheck-local: