1 # Warning, this is called from the build with the following variables set
2 # (see build/Makefile and target_debian)
9 #PYVERSION=$(shell python -c "from sfa.util.version import version_tag; print version_tag" | sed -e s,-,.,)
10 DEBVERSION=$(VERSION).$(RELEASE)
11 DATE=$(shell date -u +"%a, %d %b %Y %T")
12 DEBIAN_TARBALL=../$(PROJECT)_$(VERSION).orig.tar.bz2
14 debian: debian/changelog debian.source debian.package
18 debian/changelog: debian/changelog.in
19 sed -e "s|@VERSION@|$(DEBVERSION)|" -e "s|@DATE@|$(DATE)|" debian/changelog.in > debian/changelog
21 # TARBALL is passed from the main build (/build/Makefile) to the 'make debian' call
23 rsync -a $(TARBALL) $(DEBIAN_TARBALL)
29 $(MAKE) -f debian/rules clean
30 rm -rf build/ MANIFEST ../*.tar.gz ../*.dsc ../*.build
31 find . -name '*.pyc' -delete