v0.5
[drlaunch] / debian / rules
1 #!/usr/bin/make -f
2   
3 #DEB_PYTHON_VERSIONS:=2.5
4 DEB_PYTHON_SYSTEM=pysupport
5
6 include /usr/share/cdbs/1/rules/debhelper.mk
7 include /usr/share/cdbs/1/class/python-distutils.mk
8
9 PYVERS = $(shell pyversions -vd)
10
11 cdbs_python_current_binary := $(shell pyversions -d)
12
13 DEB_PYTHON_INSTALL_ARGS_ALL = --no-compile -O0 --install-layout=deb
14
15 install/drlaunch::
16         dh_install drlaunch_widget.py usr/lib/hildon-desktop/
17         dh_install misc/drlaunch.desktop usr/share/applications/hildon-home/
18
19 python-build-stamp-%:
20 ifeq (all, $(cdbs_python_module_arch))
21          cd $(DEB_SRCDIR) && $(cdbs_python_current_binary) $(DEB_PYTHON_SETUP_CMD) build $(DEB_PYTHON_BUILD_ARGS)
22 else
23          cd $(DEB_SRCDIR) && $(cdbs_python_current_binary) $(DEB_PYTHON_SETUP_CMD) build $(DEB_PYTHON_BUILD_ARGS)
24 endif # archall detection
25          touch $@
26
27 # install stage
28 ifeq (all, $(cdbs_python_module_arch))
29 common-install-arch common-install-indep:: python-install-py
30 python-install-py:
31          cd $(DEB_SRCDIR) && $(cdbs_python_current_binary) $(DEB_PYTHON_SETUP_CMD) install --root=$(DEB_DESTDIR) $(DEB_PYTHON_INSTALL_ARGS_ALL)
32 else
33 common-install-arch common-install-indep:: $(addprefix python-install-, $(cdbs_python_build_versions))
34 python-install-%:
35          cd $(DEB_SRCDIR) && $(cdbs_python_current_binary) $(DEB_PYTHON_SETUP_CMD) install --root=$(DEB_DESTDIR) $(DEB_PYTHON_INSTALL_ARGS_ALL)
36 endif # archall detection
37