contrib/packages/debian/Makefile
BUILDIR=$(CURDIR)/debian/avocado
PROJECT=avocado
all:
@echo
@echo "Debian related targets:"
@echo "deb: Generate both source and binary debian packages"
@echo "deb-src: Generate a source debian package"
@echo "deb-bin: Generate a binary debian package"
@echo
deb-prepare-source:
# build the source package in the parent directory
# then rename it to project_version.orig.tar.gz
dch -D "vivid" -M -v "$(VERSION)" "Automated (make builddeb) build."
$(PYTHON) setup.py sdist $(COMPILE) --dist-dir=../
rename -f 's/$(PROJECT)-(.*)\.tar\.gz/$(PROJECT)_$$1\.orig\.tar\.gz/' ../*
deb-src: deb-prepare-source
# build the source package
dpkg-buildpackage -S -elookkas@gmail.com -rfakeroot
deb-bin: deb-prepare-source
# build binary package
dpkg-buildpackage -b -rfakeroot
deb: deb-prepare-source
# build both source and binary packages
dpkg-buildpackage -i -I -rfakeroot