File: rules

package info (click to toggle)
songwrite 0.14-3
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 1,444 kB
  • ctags: 993
  • sloc: python: 7,059; xml: 850; makefile: 11
file content (21 lines) | stat: -rwxr-xr-x 729 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/usr/bin/make -f
# -*- mode: makefile; coding: utf-8 -*-

include /usr/share/cdbs/1/rules/debhelper.mk
DEB_PYTHON_SYSTEM = pysupport
include /usr/share/cdbs/1/class/python-distutils.mk


binary-install/$(DEB_PYTHON_MODULE_PACKAGE)::
	find debian/$(cdbs_curpkg)/usr/share/ -type f -exec chmod -R a-x {} \;
	#
	mkdir -p debian/$(cdbs_curpkg)/usr/share/doc/$(cdbs_curpkg)/
	mv debian/$(cdbs_curpkg)/usr/share/$(cdbs_curpkg)/doc/* debian/$(cdbs_curpkg)/usr/share/doc/$(cdbs_curpkg)/
	rmdir debian/$(cdbs_curpkg)/usr/share/$(cdbs_curpkg)/doc
	#
	find debian/$(cdbs_curpkg)/usr/share/locale -name "*.po" -exec rm {} \;
	#
	dh_desktop
	#
	mv debian/$(cdbs_curpkg)/usr/share/*.egg-info debian/$(cdbs_curpkg)/usr/share/$(cdbs_curpkg)/