CSSU's portrait mode support - WIP
[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 #       dh_install drlaunch_widget.py tmp/
19         dh_install misc/drlaunch.desktop tmp/
20
21 python-build-stamp-%:
22 ifeq (all, $(cdbs_python_module_arch))
23          cd $(DEB_SRCDIR) && $(cdbs_python_current_binary) $(DEB_PYTHON_SETUP_CMD) build $(DEB_PYTHON_BUILD_ARGS)
24 else
25          cd $(DEB_SRCDIR) && $(cdbs_python_current_binary) $(DEB_PYTHON_SETUP_CMD) build $(DEB_PYTHON_BUILD_ARGS)
26 endif # archall detection
27          touch $@
28
29 # install stage
30 ifeq (all, $(cdbs_python_module_arch))
31 common-install-arch common-install-indep:: python-install-py
32 python-install-py:
33          cd $(DEB_SRCDIR) && $(cdbs_python_current_binary) $(DEB_PYTHON_SETUP_CMD) install --root=$(DEB_DESTDIR) $(DEB_PYTHON_INSTALL_ARGS_ALL)
34 else
35 common-install-arch common-install-indep:: $(addprefix python-install-, $(cdbs_python_build_versions))
36 python-install-%:
37          cd $(DEB_SRCDIR) && $(cdbs_python_current_binary) $(DEB_PYTHON_SETUP_CMD) install --root=$(DEB_DESTDIR) $(DEB_PYTHON_INSTALL_ARGS_ALL)
38 endif # archall detection
39