[patch 07/39] make dist fixes for bf: dont dist generated files
Robert Schwebel <[email protected]> Sun, 04 Feb 2007 03:31:27 +0100
| Newsgroups | gmane.comp.gnu.dotgnu.developer |
|---|---|
| Message-ID | <[email protected]> |
pnet-20070203-cscc-bf-dist.diff
(application/octet-stream, 2 KB)
Remove $(TREECC_SRCOUT), containing the source files generated by treecc, from the libILBf_a_SOURCES variable and add them to nodist_libILBf_a_SOURCES instead. The files are being generated, so they must not be distributed with the packet. Consequently, $(TREECC_OUTPUT) is also added to BUILD_SOURCES. Signed-off-by: Robert Schwebel <[email protected]> cscc/bf/Makefile.am | 32 ++++++++++++++++++++++++++++---- 1 file changed, 28 insertions(+), 4 deletions(-) Index: cscc/bf/Makefile.am =================================================================== --- cscc/bf/Makefile.am.orig +++ cscc/bf/Makefile.am @@ -6,7 +6,27 @@ TREECC_INPUTS = bf_defs.tc \ TREECC_SRCOUT = bf_nodes.c bf_codegen.c -TREECC_OUTPUT = $(TREECC_SRCOUT) bf_defs.h +TREECC_UNUSED_SRCOUT = \ + cg_lvalue.c \ + jv_assign.c \ + cg_logical.c \ + cg_ainit.c \ + cg_attrs.c \ + cg_relop.c \ + cg_decls.c \ + cg_arith.c \ + cg_cast.c \ + jv_arith.c \ + cg_const.c \ + cg_assign.c \ + cg_nodes.h \ + jv_cast.c \ + cg_nodes.c \ + jv_nodes.c \ + cg_stmt.c \ + cg_misc.c + +TREECC_OUTPUT = $(TREECC_SRCOUT) $(TREECC_UNUSED_SRCOUT) bf_defs.h EXTRA_DIST = $(TREECC_INPUTS) @@ -14,8 +34,10 @@ libILBf_a_SOURCES = bf_grammar.y \ bf_scanner.l \ bf_optimize.c \ bf_internal.h \ - bf_rename.h \ - $(TREECC_SRCOUT) + bf_rename.h + +nodist_libILBf_a_SOURCES = \ + $(TREECC_SRCOUT) AM_YFLAGS = -d @@ -23,7 +45,7 @@ AM_CFLAGS = -I$(top_srcdir) -I$(top_buil STAMP = stamp-treecc -BUILT_SOURCES = $(STAMP) +BUILT_SOURCES = $(STAMP) $(TREECC_OUTPUT) libILBf_a_DEPENDENCIES = $(STAMP) @@ -33,3 +55,5 @@ $(STAMP): $(TREECC_INPUTS) ../../codegen bf_scanner.l: bf_grammar.c CLEANFILES = bf_grammar.c bf_scanner.c bf_grammar.h $(TREECC_OUTPUT) $(STAMP) + + -- 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