mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2024-12-28 08:48:53 +00:00
8dad6fffc3
oops. I screwed up the makefile syntax further. buildslave would spend a lot of fruitless time trawling the entire drive. this fixes that. and a stray -n. ahem. [looks down sheepishly]
37 lines
1.0 KiB
Makefile
37 lines
1.0 KiB
Makefile
|
|
.PHONY: all dist build diskimage upload cleanup clean
|
|
|
|
all: build
|
|
|
|
dist: build diskimage upload cleanup
|
|
|
|
build:
|
|
rsync -av ` sw_vers -productVersion | sed -e 's/^\(10\.[0-9]*\)\..*$$/\1/' `/ ./
|
|
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
|