This code was obviously never tested with 'make dist' or 'make distcheck'. It adds generated sources to expr_c_SOURCES, which results in the build system trying to package the generated files into the distribution, which doesn't work, because on 'make dist', only the files-to-be-distributed are packaged and, in this case, treecc is not even being built, so any attempt to call it will fail.
Signed-off-by: Robert Schwebel <[EMAIL PROTECTED]> --- Makefile.am | 7 ++++--- 1 files changed, 4 insertions(+), 3 deletions(-) Index: examples/Makefile.am =================================================================== --- examples/Makefile.am.orig +++ examples/Makefile.am @@ -7,10 +7,11 @@ noinst_PROGRAMS = expr_c EXTRA_DIST = expr_c.tc gram_c.h -expr_c_DEPENDENCIES = $(top_builddir)/treecc +## expr_c_DEPENDENCIES = $(top_builddir)/treecc BUILT_SOURCES = expr_c.c expr_c.h gram_c.c gram_c.h -expr_c_SOURCES = expr_c.c expr_c.h gram_c.y scan_c.l +expr_c_SOURCES = gram_c.y scan_c.l +nodist_expr_c_SOURCES = expr_c.c expr_c.h expr_c_LDADD = -lm expr_c.c expr_c.h: $(srcdir)/expr_c.tc @@ -21,7 +22,7 @@ gram_c.c gram_c.h: gram_c.y ## expr_cpp_SOURCES = expr_cpp.cc gram_cpp.yy scan_cpp.ll ## ## expr_cpp.cc expr_cpp.h: expr_cpp.tc -## ../treecc $(srcdir)/expr_cpp.tc +## $(top_builddir)/treecc $(srcdir)/expr_cpp.tc AM_YFLAGS = -d -- Dipl.-Ing. Robert Schwebel | http://www.pengutronix.de Pengutronix - Linux Solutions for Science and Industry Handelsregister: Amtsgericht Hildesheim, HRA 2686 Hannoversche Str. 2, 31134 Hildesheim, Germany Phone: +49-5121-206917-0 | Fax: +49-5121-206917-9 _______________________________________________ Developers mailing list [email protected] http://dotgnu.org/mailman/listinfo/developers
