File: rules

package info (click to toggle)
python-webunit 1%3A1.3.10-2
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd, wheezy
  • size: 172 kB
  • ctags: 210
  • sloc: python: 1,516; makefile: 15
file content (43 lines) | stat: -rwxr-xr-x 1,067 bytes parent folder | download | duplicates (2)
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
34
35
36
37
38
39
40
41
42
43
#!/usr/bin/make -f
# -*- makefile -*-
# Sample debian/rules that uses debhelper.
# This file was originally written by Joey Hess and Craig Small.
# As a special exception, when this file is copied by dh-make into a
# dh-make output file, you may use that output file without restriction.
# This special exception was added by Craig Small in version 0.37 of dh-make.

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1


PACKAGE=python-webunit

export DH_VERBOSE=1

UPSTREAM_VERSION=1.3.10

DEB_SRCDIR=$(CURDIR)
ROOT=$(DEB_SRCDIR)/debian/$(PACKAGE)
# DEB_BUILDDIR=debian/$(PACKAGE)
DOC=$(DEB_SRCDIR)/debian/$(PACKAGE)/usr/share/doc/$(PACKAGE)


DEB_PYTHON_SYSTEM=pysupport

DEB_PYTHON_VERSIONS=all

#include /usr/share/cdbs/1/rules/debhelper.mk
#include /usr/share/cdbs/1/class/python-distutils.mk

%:
	dh $@

binary-install/${PACKAGE}::
	rm -fr build home $(ROOT)/build/demo
	mv $(DOC)/demo $(DOC)/examples
	find $(DOC)/examples -type f |xargs chmod a-x
	rm -fr $(ROOT)/usr/share/pyshared/demo
#	rm -fr ${ROOT}/usr/lib

# mv ${ROOT}/demo ${DOC}/examples