X-Git-Url: https://vcs.maemo.org/git/?a=blobdiff_plain;f=Makefile;h=7ec58146694eabc7d6ff22c1ecca26c062fbcdaa;hb=da7e8f53f6a10a2f48a176ff10c17eddd1a9f980;hp=79aa5558900835e6ce322db29ac0aabbf17ac258;hpb=4801eafb397f98ed34b37324f31d706bd95d06e4;p=dbuscron diff --git a/Makefile b/Makefile index 79aa555..7ec5814 100644 --- a/Makefile +++ b/Makefile @@ -4,6 +4,8 @@ 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 @@ -14,8 +16,8 @@ compile: .py.pyo 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` 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)/{} install -o root -g root -m 0644 ./event.d/dbuscron $(DESTDIR)/etc/event.d/dbuscron