diff options
author | Ryan Dahl <ry@tinyclouds.org> | 2011-11-21 07:22:30 +0400 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2011-11-21 07:22:30 +0400 |
commit | 9d1bdbcf05c9f23a9e18caccf305cf63b563c3b8 (patch) | |
tree | f9907aaaf9cecdf3c0453a266f3c03c46336a1a7 /Makefile | |
parent | 61e796decc0fc77ee58d8e69f949220767da5dc8 (diff) |
Fixes #2084. Makeify tools/osx-dist.sh
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 17 |
1 files changed, 14 insertions, 3 deletions
@@ -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 - |