From 8cbf3ce22c7ee19db7b8b99985960683428b2941 Mon Sep 17 00:00:00 2001 From: Akim Demaille Date: Sun, 10 Feb 2019 19:41:08 +0100 Subject: [PATCH] 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. --- examples/c/calc/local.mk | 1 + examples/c/lexcalc/local.mk | 1 + examples/c/mfcalc/local.mk | 1 + examples/c/rpcalc/local.mk | 1 + 4 files changed, 4 insertions(+) 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