File: rules

package info (click to toggle)
python-stats 0.6-1
  • links: PTS
  • area: main
  • in suites: woody
  • size: 232 kB
  • ctags: 572
  • sloc: python: 2,969; makefile: 29; sh: 26
file content (49 lines) | stat: -rwxr-xr-x 1,014 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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
#! /usr/bin/make -f
# -*- makefile -*-

# copied this from gnuplot package by Matthias Klose <doko@cs.tu-berlin.de>

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

p	:= python-stats
d	:= debian/$(p)
PV	:= 2.1
pylib	:= usr/lib/python$(PV)/site-packages

build:
# We have nothing to do by default.

clean:
	dh_clean
	rm -f *.pyc *.pyo

# Build architecture-independent files here.
binary-indep: build
	dh_testdir
	dh_testroot

	: # install it
	dh_installdirs -i $(pylib)
	dh_installdocs -i README.stats README.pstat
	cp -a stats.py pstat.py $(d)/$(pylib)/
	dh_undocumented -i

	dh_installchangelogs -i Changelog
	dh_compress -i
	dh_fixperms -i
	dh_installdeb -i
	dh_gencontrol -i
	dh_md5sums -i
	dh_builddeb -i

# Build architecture-dependent files here.
binary-arch: build
# We have nothing to do by default.

source diff:
	@echo >&2 'source and diff are obsolete - use dpkg-source -b'; false

binary: binary-indep binary-arch
.PHONY: build clean binary-indep binary-arch binary