tahoe-lafs/mac/Makefile
robk-tahoe 1a02f38cf3 mac build: updates to respect UPLOAD_DEST argument to make
the make mac-upload target now requires an UPLOAD_DEST argument to be given,
which is the rsync destination (including trailing '/') to which the version
stamped directory containing the .dmg should be placed.  the account the 
build is running as (e.g. 'buildslave') should have ssh access to the account
specified in that dest. one might also consider locking the key down to the
target directory by adding something like 
command="rsync --server -vlogDtpr . /home/amduser/public_html/dist/mac-blah/"
to the corresponding authorized_key entry on the target machine.
2008-02-26 17:03:53 -07:00

36 lines
942 B
Makefile

.PHONY: all dist build diskimage upload cleanup clean
all: build
dist: build diskimage upload cleanup
build:
python setup.py py2app --no-chdir
diskimage:
mv dist Allmydata-$(VERSION)
hdiutil create -ov -srcfolder Allmydata-$(VERSION) allmydata-rw.dmg
hdiutil convert -ov allmydata-rw.dmg -format UDRO -o allmydata-ro.dmg
hdiutil convert -ov allmydata-ro.dmg -format UDZO -o Allmydata-$(VERSION).dmg
hdiutil internet-enable -yes Allmydata-$(VERSION).dmg
rm -r Allmydata-$(VERSION) allmydata-rw.dmg allmydata-ro.dmg
ifdef UPLOAD_DEST
upload:
mkdir $(VERSION)
cp Allmydata-$(VERSION).dmg $(VERSION)/
chmod -R go+rx $(VERSION)/
rsync -av $(VERSION) $(UPLOAD_DEST)
rm -r $(VERSION)
else
upload:
$(error UPLOAD_DEST must be set when using upload target. e.g. make upload UPLOAD_DEST=amduser@svn.allmydata.com:/home/amduser/public_html/dist/tahoe/mac-blah/)
endif
cleanup:
rm Allmydata-$(VERSION).dmg
clean:
rm -rf build dist