Makefile: debuild and publish targets
[dbuscron] / Makefile
index a3456af..d89bfca 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -11,10 +11,7 @@ BINFILES = dbuscron.py dbuscrontab.py migrate-dbus-scripts.py
 compile: .py.pyo
 
 .py.pyo:
-       cp ./dbuscron/__init__.py ./dbuscron/__init__.py.bak
-       sed -i -e "s/%VERSION%/`git describe --tags`/" ./dbuscron/__init__.py
        python$(PYVERSION) -O -m compileall ./dbuscron
-       mv -f ./dbuscron/__init__.py.bak ./dbuscron/__init__.py
 
 install: compile
        for f in $(BINFILES); do \
@@ -50,11 +47,18 @@ build: debclean
        ./genchangelog $(B)
        git commit -m "changelog updated" ./debian/changelog
        git tag -f v$(B)
-       git push -f origin v$(B)
        $(MAKE) deb
 
 tarball:
        git archive --format=tar v$(B) | gzip -9 > ../dbuscron_$(B:.0=).orig.tar.gz
 
-.PHONY: install uninstall clean debclean deb build compile
+debuild: tarball
+       debuild
+
+publish: debuild
+       scp ../dbuscron_$(B:.0=)*.tar.gz drop.maemo.org:/var/www/extras-devel/incoming-builder/fremantle
+       scp ../dbuscron_$(B:.0=)*.changes drop.maemo.org:/var/www/extras-devel/incoming-builder/fremantle
+       scp ../dbuscron_$(B:.0=)*.dsc drop.maemo.org:/var/www/extras-devel/incoming-builder/fremantle
+
+.PHONY: install uninstall clean debclean deb build compile tarball debuild publish