0.1.0
[maegirls] / debian / tags / 0.1.0 / rules
1 #!/usr/bin/make -f
2
3 #DEB_PYTHON_VERSIONS:=2.5
4 DEB_PYTHON_SYSTEM=pysupport
5
6 PYVERS = $(shell pyversions -vd)
7
8 include /usr/share/cdbs/1/rules/debhelper.mk
9 include /usr/share/cdbs/1/class/python-distutils.mk
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/maegirls::
16         dh_install misc/maegirls.desktop usr/share/applications/hildon/
17         cp misc/maegirls-64x64.png debian/maegirls.png
18         dh_install debian/maegirls.png usr/share/icons/hicolor/64x64/apps/
19         rm -f debian/maegirls.png
20
21 #clean/maegirls::
22 #       rm -f debian/maegirls.png
23
24 python-build-stamp-%:
25 ifeq (all, $(cdbs_python_module_arch))
26          cd $(DEB_SRCDIR) && $(cdbs_python_current_binary) $(DEB_PYTHON_SETUP_CMD) build $(DEB_PYTHON_BUILD_ARGS)
27 else
28          cd $(DEB_SRCDIR) && $(cdbs_python_current_binary) $(DEB_PYTHON_SETUP_CMD) build $(DEB_PYTHON_BUILD_ARGS)
29 endif # archall detection
30          touch $@
31
32 # install stage
33 ifeq (all, $(cdbs_python_module_arch))
34 common-install-arch common-install-indep:: python-install-py
35 python-install-py:
36          cd $(DEB_SRCDIR) && $(cdbs_python_current_binary) $(DEB_PYTHON_SETUP_CMD) install --root=$(DEB_DESTDIR) $(DEB_PYTHON_INSTALL_ARGS_ALL)
37 else
38 common-install-arch common-install-indep:: $(addprefix python-install-, $(cdbs_python_build_versions))
39 python-install-%:
40          cd $(DEB_SRCDIR) && $(cdbs_python_current_binary) $(DEB_PYTHON_SETUP_CMD) install --root=$(DEB_DESTDIR) $(DEB_PYTHON_INSTALL_ARGS_ALL)
41 endif # archall detection
42