Remove $(TREECC_SRCOUT), containing the source files generated by
treecc, from the libILCSharp_a_SOURCES variable and add them to
nodist_libILCSharp_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/csharp/Makefile.am |   29 +++++++++++++++++++++++++----
 1 file changed, 25 insertions(+), 4 deletions(-)

Index: cscc/csharp/Makefile.am
===================================================================
--- cscc/csharp/Makefile.am.orig
+++ cscc/csharp/Makefile.am
@@ -15,7 +15,27 @@ TREECC_INPUTS = cs_cast.tc \
 
 TREECC_SRCOUT = cs_nodes.c cs_semantics.c
 
-TREECC_OUTPUT = $(TREECC_SRCOUT) cs_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) cs_defs.h
 
 EXTRA_DIST = $(TREECC_INPUTS)
 
@@ -29,8 +49,9 @@ libILCSharp_a_SOURCES  = cs_attrs.c \
                                                 cs_scanner.l \
                                                 cs_semvalue.c \
                                                 cs_semvalue.h \
-                                                cs_valdoc.c \
-                                                $(TREECC_SRCOUT)
+                                                cs_valdoc.c
+
+nodist_libILCSharp_a_SOURCES = $(TREECC_SRCOUT)
 
 AM_YFLAGS = -d
 
@@ -38,7 +59,7 @@ AM_CFLAGS = -I$(top_srcdir) -I$(top_buil
 
 STAMP = stamp-treecc
 
-BUILT_SOURCES = $(STAMP)
+BUILT_SOURCES = $(STAMP) $(TREECC_OUTPUT)
 
 libILCSharp_a_DEPENDENCIES = $(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

_______________________________________________
Developers mailing list
[email protected]
http://dotgnu.org/mailman/listinfo/developers

Reply via email to