- for f in dist/allmydata-tahoe-*; do \
- xfer-client --furlfile ~/.tahoe-tarball-upload.furl $$f; \
- done
-
-# DEBIAN PACKAGING
-
-VER=$(shell $(PYTHON) misc/get-version.py)
-DEBCOMMENTS="'make deb' build"
-
-show-version:
- @echo $(VER)
-show-pp:
- @echo $(PP)
-
-.PHONY: setup-deb deb-ARCH is-known-debian-arch
-.PHONY: deb-etch deb-sid
-.PHONY: deb-edgy deb-feisty deb-gutsy deb-hardy deb-intrepid deb-lenny
-
-deb-sid:
- $(MAKE) deb-ARCH ARCH=sid
-deb-feisty:
- $(MAKE) deb-ARCH ARCH=feisty
-# edgy uses the feisty control files for now
-deb-edgy:
- $(MAKE) deb-ARCH ARCH=edgy TAHOE_ARCH=feisty
-# etch uses the feisty control files for now
-deb-etch:
- $(MAKE) deb-ARCH ARCH=etch TAHOE_ARCH=feisty
-# same with gutsy, the process has been nicely stable for a while now
-deb-gutsy:
- $(MAKE) deb-ARCH ARCH=gutsy TAHOE_ARCH=feisty
-deb-hardy:
- $(MAKE) deb-ARCH ARCH=hardy TAHOE_ARCH=feisty
-deb-intrepid:
- $(MAKE) deb-ARCH ARCH=intrepid TAHOE_ARCH=feisty
-deb-lenny:
- $(MAKE) deb-ARCH ARCH=lenny TAHOE_ARCH=feisty
-
-
-
-# we know how to handle the following debian architectures
-KNOWN_DEBIAN_ARCHES := etch sid edgy feisty gutsy hardy intrepid lenny
-
-ifeq ($(findstring x-$(ARCH)-x,$(foreach arch,$(KNOWN_DEBIAN_ARCHES),"x-$(arch)-x")),)
-is-known-debian-arch:
- @echo "ARCH must be set when using setup-deb or deb-ARCH"
- @echo "I know how to handle:" $(KNOWN_DEBIAN_ARCHES)
- false
-else
-is-known-debian-arch:
- true
-endif
-
-ifndef TAHOE_ARCH
-TAHOE_ARCH=$(ARCH)
-endif
-
-setup-deb: is-known-debian-arch
- rm -f debian
- ln -s misc/$(TAHOE_ARCH)/debian debian
- chmod +x debian/rules
-
-# etch (current debian stable) has python-simplejson-1.3, which doesn't
-# support indent=
-# sid (debian unstable) currently has python-simplejson 1.7.1
-# edgy has 1.3, which doesn't support indent=
-# feisty has 1.4, which supports indent= but emits a deprecation warning
-# gutsy has 1.7.1
-#
-# we need 1.4 or newer
-
-deb-ARCH: is-known-debian-arch setup-deb
- fakeroot debian/rules binary
- @echo
- @echo "The newly built .deb packages are in the parent directory from here."
-
-.PHONY: increment-deb-version
-.PHONY: deb-edgy-head deb-feisty-head deb-gutsy-head deb-hardy-head deb-intrepid-head deb-lenny-head
-.PHONY: deb-etch-head deb-sid-head
-
-# The buildbot runs the following targets after each change, to produce
-# up-to-date tahoe .debs. These steps do not create .debs for anything else.
-
-increment-deb-version: make-version
- debchange --newversion $(VER) $(DEBCOMMENTS)
-deb-sid-head:
- $(MAKE) setup-deb ARCH=sid
- $(MAKE) increment-deb-version
- fakeroot debian/rules binary
-deb-edgy-head:
- $(MAKE) setup-deb ARCH=edgy TAHOE_ARCH=feisty
- $(MAKE) increment-deb-version
- fakeroot debian/rules binary
-deb-feisty-head:
- $(MAKE) setup-deb ARCH=feisty
- $(MAKE) increment-deb-version
- fakeroot debian/rules binary
-deb-etch-head:
- $(MAKE) setup-deb ARCH=etch TAHOE_ARCH=feisty
- $(MAKE) increment-deb-version
- fakeroot debian/rules binary
-deb-gutsy-head:
- $(MAKE) setup-deb ARCH=gutsy TAHOE_ARCH=feisty
- $(MAKE) increment-deb-version
- fakeroot debian/rules binary
-deb-hardy-head:
- $(MAKE) setup-deb ARCH=hardy TAHOE_ARCH=feisty
- $(MAKE) increment-deb-version
- fakeroot debian/rules binary
-deb-intrepid-head:
- $(MAKE) setup-deb ARCH=intrepid TAHOE_ARCH=feisty
- $(MAKE) increment-deb-version
- fakeroot debian/rules binary
-deb-lenny-head:
- $(MAKE) setup-deb ARCH=lenny TAHOE_ARCH=feisty
- $(MAKE) increment-deb-version
- fakeroot debian/rules binary
-
-
-# These targets provide for windows native builds
-.PHONY: windows-exe windows-installer windows-installer-upload
-
-windows-exe: .built
- $(RUNPP) -c "$(MAKE) -C windows windows-exe"
-
-windows-installer:
- $(RUNPP) -c "$(MAKE) -C windows windows-installer"
-
-windows-installer-upload:
- $(RUNPP) -c "$(MAKE) -C windows windows-installer-upload"
-
-
-# These targets provide for mac native builds
-.PHONY: mac-exe mac-upload mac-cleanup mac-dbg
-
-mac-exe: .built
- $(MAKE) -C mac clean
- VERSION=$(VER) $(RUNPP) -c "$(MAKE) -C mac build"
-
-mac-dist:
- VERSION=$(VER) $(MAKE) -C mac diskimage
-
-mac-upload:
- VERSION=$(VER) $(MAKE) -C mac upload
-
-mac-cleanup:
- VERSION=$(VER) $(MAKE) -C mac cleanup
-
-mac-dbg:
- cd mac && $(PP) $(PYTHON)w allmydata_tahoe.py
-