X-Git-Url: https://vcs.maemo.org/git/?a=blobdiff_plain;ds=sidebyside;f=Makefile;h=9e3cdc4ef3b3748b0deef11f2eb1cedef47bcda8;hb=7c669d4c3e885f786aaf979186b8eb1eab1ab5be;hp=3a48f39ca48da7111f4362909b7924284b037596;hpb=171575a4753b2bd66afa5c10c056724bc46c6b1b;p=dbuscron diff --git a/Makefile b/Makefile index 3a48f39..9e3cdc4 100644 --- a/Makefile +++ b/Makefile @@ -4,20 +4,21 @@ PYMODULES ?= $(DESTDIR)/usr/lib/pymodules/python2.5 PREFIX ?= $(DESTDIR)/usr/bin PYVERSION ?= 2.5 +BINFILES = dbuscron.py dbuscrontab.py migrate-dbus-scripts.py + .SUFFIXES: .py .pyo compile: .py.pyo .py.pyo: - sed -i.bak -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 - install -o root -g root -m 0755 ./dbuscron.py $(PREFIX)/dbuscron - install -o root -g root -m 0755 ./dbuscrontab.py $(PREFIX)/dbuscrontab + for f in $(BINFILES); do \ + install -o root -g root -m 0755 ./$$f $(PREFIX)/`basename $$f .py`; done install -o root -g root -m 0755 -d $(PYMODULES)/dbuscron/shell - find ./dbuscron -name "*.pyo" | xargs -I {} install -o root -g root -m 0644 {} $(PYMODULES)/{} + for f in `find ./dbuscron -name "*.pyo"`; do \ + install -o root -g root -m 0644 $$f $(PYMODULES)/$$f; done install -o root -g root -m 0644 ./event.d/dbuscron $(DESTDIR)/etc/event.d/dbuscron test -f $(DESTDIR)/etc/dbuscrontab || \ install -o root -g root -m 0644 ./doc/dbuscrontab $(DESTDIR)/etc/dbuscrontab @@ -49,5 +50,8 @@ build: debclean 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