Skip to content

Commit

Permalink
Make OS X installer build from /tmp/dist/pkgroot, and have it be part…
Browse files Browse the repository at this point in the history
… of the 'make dist' target
  • Loading branch information
bleibig authored and alexcrichton committed Feb 28, 2014
1 parent bbec2c5 commit 4d4ccb5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions mk/dist.mk
Expand Up @@ -107,7 +107,7 @@ distcheck: dist

else

dist: $(PKG_TAR)
dist: $(PKG_TAR) $(PKG_OSX)

distcheck: $(PKG_TAR)
$(Q)rm -Rf dist
Expand All @@ -133,7 +133,7 @@ ifeq ($(CFG_OSTYPE), apple-darwin)

dist-prepare-osx: PREPARE_HOST=$(CFG_BUILD)
dist-prepare-osx: PREPARE_TARGETS=$(CFG_BUILD)
dist-prepare-osx: PREPARE_DEST_DIR=pkgroot
dist-prepare-osx: PREPARE_DEST_DIR=tmp/dist/pkgroot
dist-prepare-osx: PREPARE_STAGE=2
dist-prepare-osx: PREPARE_DIR_CMD=$(DEFAULT_PREPARE_DIR_CMD)
dist-prepare-osx: PREPARE_BIN_CMD=$(DEFAULT_PREPARE_BIN_CMD)
Expand All @@ -143,9 +143,9 @@ dist-prepare-osx: prepare-base

$(PKG_OSX): Distribution.xml LICENSE.txt dist-prepare-osx
@$(call E, making OS X pkg)
$(Q)pkgbuild --identifier org.rust-lang.rust --root pkgroot rust.pkg
$(Q)pkgbuild --identifier org.rust-lang.rust --root tmp/dist/pkgroot rust.pkg
$(Q)productbuild --distribution Distribution.xml --resources . $(PKG_OSX)
$(Q)rm -rf pkgroot rust.pkg
$(Q)rm -rf tmp rust.pkg

dist-osx: $(PKG_OSX)

Expand Down

0 comments on commit 4d4ccb5

Please sign in to comment.