changeset 3325:64f9dbe1d7e7

* Makefile.in: Add KEEP_BUILD variable to keep tmp dirs after build.
author Michael Goffioul <michael.goffioul@gmail.com>
date Thu, 14 Nov 2013 11:43:08 -0500
parents 79b4fa46e4dd
children 4ec93c2c211c
files Makefile.in
diffstat 1 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/Makefile.in	Thu Nov 14 08:15:49 2013 -0800
+++ b/Makefile.in	Thu Nov 14 11:43:08 2013 -0500
@@ -50,6 +50,10 @@
 # Look in lib64 directory.
 MXE_USE_LIB64_DIRECTORY := @ENABLE_LIB64_DIRECTORY@
 
+# Do not remove the temporary build directories. Set to 1 to keep them
+# around after the build step.
+KEEP_BUILD :=
+
 ## end of configuration variables.
 
 ifneq ($(MXE_NATIVE_BUILD),yes)
@@ -584,7 +588,7 @@
 		rm -rfv  '$(2)-install'; \
 	    fi
 	    (du -k -d 0 '$(2)' 2>/dev/null || du -k --max-depth 0 '$(2)') | $(SED) -n 's/^\(\S*\).*/du: \1 KiB/p'
-	    rm -rfv  '$(2)'
+	    [ '$(KEEP_BUILD)' = '1' ] || rm -rfv  '$(2)'
 	    ,)
 	[ -d '$(STAMP_DIR)' ] || mkdir -p '$(STAMP_DIR)'
 	echo $($(1)_VERSION) > '$(STAMP_DIR)/$(1)'