Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRyan Dahl <ry@tinyclouds.org>2011-11-21 07:22:30 +0400
committerRyan Dahl <ry@tinyclouds.org>2011-11-21 07:22:30 +0400
commit9d1bdbcf05c9f23a9e18caccf305cf63b563c3b8 (patch)
treef9907aaaf9cecdf3c0453a266f3c03c46336a1a7 /Makefile
parent61e796decc0fc77ee58d8e69f949220767da5dc8 (diff)
Fixes #2084. Makeify tools/osx-dist.sh
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile17
1 files changed, 14 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 18e3d4fe82a..16c035f7f63 100644
--- a/Makefile
+++ b/Makefile
@@ -132,14 +132,25 @@ check:
VERSION=v$(shell python tools/getnodeversion.py)
TARNAME=node-$(VERSION)
TARBALL=$(TARNAME).tar.gz
-PKG=dist-osx/$(TARNAME).pkg
+PKG=out/$(TARNAME).pkg
+
+packagemaker=/Developer/Applications/Utilities/PackageMaker.app/Contents/MacOS/PackageMaker
#dist: doc/node.1 doc/api
dist: $(TARBALL) $(PKG)
+PKGDIR=out/dist-osx
+
+pkg: $(PKG)
+
$(PKG):
- -rm -rf dist-osx
- tools/osx-dist.sh
+ -rm -rf $(PKGDIR)
+ $(WAF) configure --prefix=/usr/local
+ DESTDIR=$(PKGDIR) $(WAF) install
+ $(packagemaker) \
+ --id "org.nodejs.NodeJS-$(VERSION)" \
+ --doc tools/osx-pkg.pmdoc \
+ --out $(PKG)
$(TARBALL): out/doc
git archive --format=tar --prefix=$(TARNAME)/ HEAD | tar xf -