build: do not included generated files in distribution
authorSpencer Oliver <ntfreak@users.sourceforge.net>
Fri, 17 Jun 2011 11:22:37 +0000 (12:22 +0100)
committerSpencer Oliver <ntfreak@users.sourceforge.net>
Fri, 17 Jun 2011 11:22:37 +0000 (12:22 +0100)
We have to use this method as automake seems to ignore nodist_ on libs.

Signed-off-by: Spencer Oliver <ntfreak@users.sourceforge.net>
src/Makefile.am

index 60d1189..e3adaad 100644 (file)
@@ -130,7 +130,10 @@ startup_tcl.c: startup.tcl $(BIN2C)
 # add startup_tcl.c to make clean list
 CLEANFILES = startup.tcl startup_tcl.c
 
-
+# we do not want generated file in the dist
+dist-hook:
+       rm -f $(distdir)/startup_tcl.c
+       
 MAINTAINERCLEANFILES = $(srcdir)/Makefile.in
 
 # The "quick" target builds executables & reinstalls the executables