File: rules

package info (click to toggle)
python-stats 0.6-6
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 260 kB
  • ctags: 387
  • sloc: python: 3,660; makefile: 30
file content (48 lines) | stat: -rwxr-xr-x 975 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
#! /usr/bin/make -f
# -*- makefile -*-

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

p	:= python-stats
d	:= debian/$(p)
PV	:= $(shell pyversions -vd)
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 io.py stats.py pstat.py $(d)/$(pylib)/
	dh_undocumented -i

	dh_installchangelogs -i Changelog
	dh_compress -i
	dh_fixperms -i
	dh_pycentral -i
	dh_python -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