changeset 21559:9a9de26ad99a

make: add a basic osx mpkg target
author Matt Mackall <mpm@selenic.com>
date Tue, 27 May 2014 11:39:22 -0700
parents 8b482d49563b
children a9e1ab2da30d
files Makefile
diffstat 1 files changed, 8 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/Makefile	Tue May 27 10:31:59 2014 -0700
+++ b/Makefile	Tue May 27 11:39:22 2014 -0700
@@ -134,6 +134,14 @@
 
 # Packaging targets
 
+osx:
+	@which -s bdist_mpkg || \
+	   (echo "Missing bdist_mpkg (easy_install bdist_mpkg)"; false)
+	bdist_mpkg setup.py
+	mkdir -p build/osx
+	rm -rf dist/mercurial-*.mpkg
+	mv dist/mercurial*macosx*.zip build/osx
+
 fedora:
 	mkdir -p build/fedora
 	echo y | contrib/buildrpm