PP=PYTHONPATH=$(PYTHONPATH)
-.PHONY: build
-build: build-zfec build-Crypto build-foolscap
+.PHONY: make-version build
+make-version:
$(PYTHON) misc/make-version.py
+
+build: make-version build-zfec build-Crypto build-foolscap
$(PP) $(PYTHON) ./setup.py $(EXTRA_SETUP_ARGS) install --prefix="." --root="$(INSTDIR)" --install-lib="lib" --install-scripts="bin"
build-zfec:
show-version:
@echo $(VER)
-.PHONY: setup-dapper setup-sid setup-edgy setup-feisty
-.PHONY: deb-dapper deb-sid deb-edgy deb-feisty
+.PHONY: setup-dapper setup-sid setup-edgy setup-feisty setup-etch
+.PHONY: deb-dapper deb-sid deb-edgy deb-feisty deb-etch
.PHONY: increment-deb-version
.PHONY: deb-dapper-head deb-sid-head deb-edgy-head deb-feisty-head
+.PHONY: deb-etch-head
setup-dapper:
rm -f debian
ln -s feisty/debian debian
chmod a+x debian/rules
+# etch uses the fesity control files for now
+setup-etch:
+ rm -f debian
+ ln -s feisty/debian debian
+ chmod a+x debian/rules
+
deb-dapper: setup-dapper
fakeroot debian/rules binary && \
echo && \
echo "The newly built .deb packages are in the parent directory from here."
-increment-deb-version:
+deb-etch: setup-etch
+ fakeroot debian/rules binary && \
+ make -C src/foolscap debian-sid && \
+ mv src/python-foolscap*.deb .. && \
+ echo && \
+ echo "The newly built .deb packages are in the parent directory from here."
+
+increment-deb-version: make-version
debchange --newversion $(VER) $(DEBCOMMENTS)
deb-dapper-head: setup-dapper increment-deb-version
fakeroot debian/rules binary
fakeroot debian/rules binary
deb-feisty-head: setup-feisty increment-deb-version
fakeroot debian/rules binary
+deb-etch-head: setup-etch increment-deb-version
+ fakeroot debian/rules binary