diff -r e2a553ae1edc -r fe364d8797c3 Makefile --- 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