mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-20 01:33:03 +00:00
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.
This commit is contained in:
@@ -23,6 +23,7 @@ check_PROGRAMS += %D%/calc
|
|||||||
TESTS += %D%/calc.test
|
TESTS += %D%/calc.test
|
||||||
EXTRA_DIST += %D%/calc.test
|
EXTRA_DIST += %D%/calc.test
|
||||||
%C%_calc_SOURCES = %D%/calc.y
|
%C%_calc_SOURCES = %D%/calc.y
|
||||||
|
%D%/calc.c: $(dependencies)
|
||||||
|
|
||||||
# Don't use gnulib's system headers.
|
# Don't use gnulib's system headers.
|
||||||
%C%_calc_CPPFLAGS = -I$(top_srcdir)/%D% -I$(top_builddir)/%D%
|
%C%_calc_CPPFLAGS = -I$(top_srcdir)/%D% -I$(top_builddir)/%D%
|
||||||
|
|||||||
@@ -23,6 +23,7 @@ check_PROGRAMS += %D%/lexcalc
|
|||||||
TESTS += %D%/lexcalc.test
|
TESTS += %D%/lexcalc.test
|
||||||
EXTRA_DIST += %D%/lexcalc.test
|
EXTRA_DIST += %D%/lexcalc.test
|
||||||
%C%_lexcalc_SOURCES = %D%/parse.y %D%/parse.h %D%/scan.l
|
%C%_lexcalc_SOURCES = %D%/parse.y %D%/parse.h %D%/scan.l
|
||||||
|
%D%/lexcalc.c: $(dependencies)
|
||||||
|
|
||||||
# Don't use gnulib's system headers.
|
# Don't use gnulib's system headers.
|
||||||
%C%_lexcalc_CPPFLAGS = -I$(top_srcdir)/%D% -I$(top_builddir)/%D%
|
%C%_lexcalc_CPPFLAGS = -I$(top_srcdir)/%D% -I$(top_builddir)/%D%
|
||||||
|
|||||||
@@ -28,6 +28,7 @@ extracted += $(mfcalc_extracted)
|
|||||||
|
|
||||||
check_PROGRAMS += %D%/mfcalc
|
check_PROGRAMS += %D%/mfcalc
|
||||||
nodist_%C%_mfcalc_SOURCES = $(mfcalc_sources)
|
nodist_%C%_mfcalc_SOURCES = $(mfcalc_sources)
|
||||||
|
%D%/mfcalc.c: $(dependencies)
|
||||||
# Don't use gnulib's system headers.
|
# Don't use gnulib's system headers.
|
||||||
%C%_mfcalc_CPPFLAGS = -I$(top_srcdir)/%D% -I$(top_builddir)/%D%
|
%C%_mfcalc_CPPFLAGS = -I$(top_srcdir)/%D% -I$(top_builddir)/%D%
|
||||||
%C%_mfcalc_LDADD = -lm
|
%C%_mfcalc_LDADD = -lm
|
||||||
|
|||||||
@@ -28,6 +28,7 @@ extracted += $(rpcalc_extracted)
|
|||||||
|
|
||||||
check_PROGRAMS += %D%/rpcalc
|
check_PROGRAMS += %D%/rpcalc
|
||||||
nodist_%C%_rpcalc_SOURCES = $(rpcalc_sources)
|
nodist_%C%_rpcalc_SOURCES = $(rpcalc_sources)
|
||||||
|
%D%/rpcalc.c: $(dependencies)
|
||||||
# Don't use gnulib's system headers.
|
# Don't use gnulib's system headers.
|
||||||
%C%_rpcalc_CPPFLAGS = -I$(top_builddir)/%D%
|
%C%_rpcalc_CPPFLAGS = -I$(top_builddir)/%D%
|
||||||
%C%_rpcalc_LDADD = -lm
|
%C%_rpcalc_LDADD = -lm
|
||||||
|
|||||||
Reference in New Issue
Block a user