bison-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

examples: depend on Bison's sources


From: Akim Demaille
Subject: examples: depend on Bison's sources
Date: Tue, 12 Feb 2019 06:21:43 +0100

commit 8cbf3ce22c7ee19db7b8b99985960683428b2941
Author: Akim Demaille <address@hidden>
Date:   Sun Feb 10 19:41:08 2019 +0100

    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.

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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]