From 2180eed4dbaada8923c9f9da3bbb69752d17aabc Mon Sep 17 00:00:00 2001
From: Claus-Justus Heine <Claus-Justus.Heine@IANS.Uni-Stuttgart.DE>
Date: Sun, 13 May 2007 14:27:09 +0000
Subject: [PATCH] Do a "make realclean" before packing the demo-sources.

---
 Makefile.am | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/Makefile.am b/Makefile.am
index 119116b..6910928 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -16,7 +16,7 @@ pkglibexec_SCRIPTS = libtool
 endif
 
 #
-# Install the code for the ALBERTA libs. This is useful if when making an
+# Install the code for the ALBERTA libs. This is useful when making an
 # rpm package including debug libs.                            
 #
 
@@ -39,7 +39,7 @@ demo-tarball: $(DEMO).tar.gz
 $(DEMO).tar.gz: $(DEMO)
 	$(TAR_PROGRAM) cf - $(DEMO) | $(GZIP_PROGRAM) -9 > $@
 
-demo: @DEMOSOURCES@ $(top_builddir)/config.status
+demo: @DEMOSOURCES@ $(top_builddir)/config.status $(top_builddir)/Makefile
 	echo $?
 	@case '$?' in \
 	  *config.status*) \
@@ -57,6 +57,7 @@ $(DEMO): demo
 	for i in `find $@ -name ".svn"`; do rm -rf $$i; done
 	for i in `find $@ -name ".libs"`; do rm -rf $$i; done
 	rm -f $@/src/[0-9]d/Makefile.in
+	for i in $@/src/[0-9]d/; do ( cd $$i; make realclean ) ; done
 
 clean-local:
 	-rm -rf $(DEMO)
-- 
GitLab