File: rules

package info (click to toggle)
python-visual 3.2.9-4.1
  • links: PTS, VCS
  • area: main
  • in suites: lenny
  • size: 2,796 kB
  • ctags: 2,664
  • sloc: cpp: 11,958; sh: 8,185; python: 3,709; ansic: 480; makefile: 311
file content (33 lines) | stat: -rwxr-xr-x 1,115 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
22
23
24
25
26
27
28
29
30
31
32
33
#!/usr/bin/make -f
# -*- mode: makefile; coding: utf-8 -*-
# Copyright © 2005-2006 Jonas Smedegaard <dr@jones.dk>

include debian/cdbs/1/rules/auto-update.mk
include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/class/autotools.mk
include /usr/share/cdbs/1/rules/simple-patchsys.mk
include debian/cdbs/1/rules/buildinfo.mk
include debian/cdbs/1/rules/copyright-check.mk

mainpkg = python-visual

DEB_CONFIGURE_EXTRA_FLAGS = --disable-docs --with-example-dir="/usr/share/doc/$(mainpkg)/examples"
#DEB_INSTALL_EXAMPLES_$(mainpkg) = examples/*.py
DEB_COMPRESS_EXCLUDE = .py

# Install vpython only as example
binary-post-install/$(mainpkg)::
	mv debian/$(mainpkg)/usr/bin/vpython debian/$(mainpkg)/usr/share/doc/$(mainpkg)/examples/
	rm -r debian/$(mainpkg)/usr/bin

# Avoid extra license
binary-post-install/$(mainpkg)::
	rm -f debian/$(mainpkg)/usr/share/doc/$(mainpkg)/html/license.txt

# Stupid: autotools doesn't clean byte-compiled Python code...
clean::
	find site-packages -name '*.py[co]' -exec rm -f '{}' ';'

# Handle Python code
binary-install/$(mainpkg)::
	dh_pycentral -p$(cdbs_curpkg)