summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorAkim Demaille <akim.demaille@gmail.com>2019-02-10 19:41:08 +0100
committerAkim Demaille <akim.demaille@gmail.com>2019-02-12 06:19:10 +0100
commit8cbf3ce22c7ee19db7b8b99985960683428b2941 (patch)
tree91e453fae30032a53199738a2e814713ed71eae7 /examples
parent1997093e21393611a297c480cbb22a50a4f134cf (diff)
downloadbison-8cbf3ce22c7ee19db7b8b99985960683428b2941.tar.gz
examples: depend on Bison's sources
* examples/c/calc/local.mk, examples/c/lexcalc/local.mk, * examples/c/mfcalc/local.mk, examples/c/rpcalc/local.mk: Regenerate the files if dependencies have changed.
Diffstat (limited to 'examples')
-rw-r--r--examples/c/calc/local.mk1
-rw-r--r--examples/c/lexcalc/local.mk1
-rw-r--r--examples/c/mfcalc/local.mk1
-rw-r--r--examples/c/rpcalc/local.mk1
4 files changed, 4 insertions, 0 deletions
diff --git a/examples/c/calc/local.mk b/examples/c/calc/local.mk
index af06905a..6d930dae 100644
--- a/examples/c/calc/local.mk
+++ b/examples/c/calc/local.mk
@@ -23,6 +23,7 @@ check_PROGRAMS += %D%/calc
TESTS += %D%/calc.test
EXTRA_DIST += %D%/calc.test
%C%_calc_SOURCES = %D%/calc.y
+%D%/calc.c: $(dependencies)
# Don't use gnulib's system headers.
%C%_calc_CPPFLAGS = -I$(top_srcdir)/%D% -I$(top_builddir)/%D%
diff --git a/examples/c/lexcalc/local.mk b/examples/c/lexcalc/local.mk
index bb690826..85cdb077 100644
--- a/examples/c/lexcalc/local.mk
+++ b/examples/c/lexcalc/local.mk
@@ -23,6 +23,7 @@ check_PROGRAMS += %D%/lexcalc
TESTS += %D%/lexcalc.test
EXTRA_DIST += %D%/lexcalc.test
%C%_lexcalc_SOURCES = %D%/parse.y %D%/parse.h %D%/scan.l
+%D%/lexcalc.c: $(dependencies)
# Don't use gnulib's system headers.
%C%_lexcalc_CPPFLAGS = -I$(top_srcdir)/%D% -I$(top_builddir)/%D%
diff --git a/examples/c/mfcalc/local.mk b/examples/c/mfcalc/local.mk
index a054f2c1..0beb8dfc 100644
--- a/examples/c/mfcalc/local.mk
+++ b/examples/c/mfcalc/local.mk
@@ -28,6 +28,7 @@ extracted += $(mfcalc_extracted)
check_PROGRAMS += %D%/mfcalc
nodist_%C%_mfcalc_SOURCES = $(mfcalc_sources)
+%D%/mfcalc.c: $(dependencies)
# Don't use gnulib's system headers.
%C%_mfcalc_CPPFLAGS = -I$(top_srcdir)/%D% -I$(top_builddir)/%D%
%C%_mfcalc_LDADD = -lm
diff --git a/examples/c/rpcalc/local.mk b/examples/c/rpcalc/local.mk
index 3bab2889..bda0ba67 100644
--- a/examples/c/rpcalc/local.mk
+++ b/examples/c/rpcalc/local.mk
@@ -28,6 +28,7 @@ extracted += $(rpcalc_extracted)
check_PROGRAMS += %D%/rpcalc
nodist_%C%_rpcalc_SOURCES = $(rpcalc_sources)
+%D%/rpcalc.c: $(dependencies)
# Don't use gnulib's system headers.
%C%_rpcalc_CPPFLAGS = -I$(top_builddir)/%D%
%C%_rpcalc_LDADD = -lm