changeset 2642:761b826dbec2

PR2897: clean-cacao removes extracted source tree but not extract-cacao.stamp 2016-03-28 Andrew John Hughes <gnu_andrew@member.fsf.org> PR2897: clean-cacao removes extracted source tree but not extract-cacao.stamp * Makefile.am, (clean-extract-cacao): Remove the entire CACAO tree here. (cacao-configure): Build in a separate directory, cacao.build. (cacao-build): Likewise. (cacao-install): Likewise. (clean-cacao): Only remove the installation and build directories, leaving the clean source tree intact. * NEWS: Updated.
author Andrew John Hughes <gnu_andrew@member.fsf.org>
date Tue, 29 Mar 2016 03:00:45 +0100
parents 54974595d970
children c4c90d76f8a7
files ChangeLog Makefile.am
diffstat 2 files changed, 23 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Tue Mar 29 02:29:36 2016 +0100
+++ b/ChangeLog	Tue Mar 29 03:00:45 2016 +0100
@@ -1,3 +1,19 @@
+2016-03-28  Andrew John Hughes  <gnu_andrew@member.fsf.org>
+
+	PR2897: clean-cacao removes extracted source tree
+	but not extract-cacao.stamp
+	* Makefile.am,
+	(clean-extract-cacao): Remove the entire
+	CACAO tree here.
+	(cacao-configure): Build in a separate directory,
+	cacao.build.
+	(cacao-build): Likewise.
+	(cacao-install): Likewise.
+	(clean-cacao): Only remove the installation and
+	build directories, leaving the clean source tree
+	intact.
+	* NEWS: Updated.
+
 2016-03-28  Andrew John Hughes  <gnu_andrew@member.fsf.org>
 
 	PR2352: Split JamVM rule into configure, make and
--- a/Makefile.am	Tue Mar 29 02:29:36 2016 +0100
+++ b/Makefile.am	Tue Mar 29 03:00:45 2016 +0100
@@ -1384,6 +1384,7 @@
 	touch $@
 
 clean-extract-cacao: clean-cacao
+	rm -rf cacao
 	rm -f stamps/extract-cacao.stamp
 
 stamps/extract-jamvm.stamp: stamps/download-jamvm.stamp
@@ -2164,7 +2165,9 @@
 if !USE_SYSTEM_CACAO
 	cd cacao/cacao && \
 	./autogen.sh && \
-	$(ARCH_PREFIX) ./configure \
+	mkdir ../cacao.build && \
+	cd ../cacao.build && \
+	$(ARCH_PREFIX) ../cacao/configure \
 	  --host=$(host_alias) \
 	  --build=$(build_alias) \
 	  --target=$(target_alias) \
@@ -2182,7 +2185,7 @@
 stamps/cacao-build.stamp: stamps/cacao-configure.stamp
 if BUILD_CACAO
 if !USE_SYSTEM_CACAO
-	cd cacao/cacao && \
+	cd cacao/cacao.build && \
 	$(ARCH_PREFIX) $(MAKE) -j$(PARALLEL_JOBS)
 endif
 endif
@@ -2192,7 +2195,7 @@
 stamps/cacao-install.stamp: stamps/cacao-build.stamp
 if BUILD_CACAO
 if !USE_SYSTEM_CACAO
-	cd cacao/cacao && \
+	cd cacao/cacao.build && \
 	$(ARCH_PREFIX) $(MAKE) -j$(PARALLEL_JOBS) install
 	mkdir -p $(abs_top_builddir)/cacao/install/lib
 	touch $(abs_top_builddir)/cacao/install/lib/sa-jdi.jar
@@ -2205,7 +2208,7 @@
 	touch $@
 
 clean-cacao:
-	rm -rf cacao
+	rm -rf cacao/cacao.build cacao/install
 	rm -f stamps/cacao-configure.stamp stamps/cacao-build.stamp stamps/cacao-install.stamp
 	rm -f stamps/cacao.stamp