Makefile
branchstable
changeset 29024 fe364d8797c3
parent 29023 e2a553ae1edc
child 29027 db5084d27df5
--- a/Makefile	Mon Apr 18 23:57:22 2016 -0400
+++ b/Makefile	Mon Apr 18 23:59:28 2016 -0400
@@ -165,8 +165,9 @@
 	  mkdir -p $$OUTPUTDIR && \
 	  N=`cd dist && echo mercurial-*.mpkg | sed 's,\.mpkg$$,,'` && \
 	  hdiutil create -srcfolder dist/$$N.mpkg/ -scrub -volname "$$N" \
-	    -ov $$OUTPUTDIR/$$N.dmg
-	rm -rf dist/mercurial-*.mpkg
+	    -ov $$OUTPUTDIR/$$N.dmg && \
+	  [ -n "$$KEEPMPKG" ] && mv dist/mercurial-*.mpkg $$OUTPUTDIR || \
+	  rm -rf dist/mercurial-*.mpkg
 
 deb:
 	contrib/builddeb