diff options
author | Akim Demaille <akim.demaille@gmail.com> | 2018-08-19 10:55:08 +0200 |
---|---|---|
committer | Akim Demaille <akim.demaille@gmail.com> | 2018-08-19 17:47:59 +0200 |
commit | b610f43f25aa16d591f6a6b5bf36784050ede651 (patch) | |
tree | e8f2939dc6c20ff364f94dd4f69eeece9f8f1d99 /examples/local.mk | |
parent | f348522005fc3b33b2aa8de9aa27f3a203a56dad (diff) | |
download | bison-b610f43f25aa16d591f6a6b5bf36784050ede651.tar.gz |
examples: check the variant example
* examples/mfcalc/local.mk, examples/rpcalc/local.mk: Define the
programs in a more natural order, source, preproc, then linker.
* examples/test: Be ready to work on programs that are not in
a subdir.
* examples/variant.test: New.
* examples/local.mk: Use it.
* examples/variant.yy: Don't use 0 for nullptr.
Use a more natural output for a list of string.
Diffstat (limited to 'examples/local.mk')
-rw-r--r-- | examples/local.mk | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/examples/local.mk b/examples/local.mk index 6dfbf2eb..13f8d492 100644 --- a/examples/local.mk +++ b/examples/local.mk @@ -48,6 +48,12 @@ $(extracted): %D%/extracted.stamp examplesdir = $(docdir)/examples dist_examples_DATA = %D%/README %D%/variant.yy +check_PROGRAMS += %D%/variant +nodist_%C%_variant_SOURCES = %D%/variant.yy +%C%_variant_CPPFLAGS = -I$(top_builddir) +dist_TESTS += %D%/variant.test + + include %D%/calc++/local.mk include %D%/mfcalc/local.mk include %D%/rpcalc/local.mk |