# HG changeset patch # User Michael Goffioul # Date 1384447388 18000 # Node ID 64f9dbe1d7e7e860fb36ed4415c7869f5c2b805b # Parent 79b4fa46e4ddb453d6bb95fb584c7329a81c1767 * Makefile.in: Add KEEP_BUILD variable to keep tmp dirs after build. diff -r 79b4fa46e4dd -r 64f9dbe1d7e7 Makefile.in --- 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)'