File: rules

package info (click to toggle)
python-pefile 1.2.9.1-1
  • links: PTS
  • area: main
  • in suites: lenny, squeeze, wheezy
  • size: 260 kB
  • ctags: 226
  • sloc: python: 2,337; makefile: 35
file content (43 lines) | stat: -rwxr-xr-x 830 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
#!/usr/bin/make -f
#export DH_VERBOSE=1

PYTHON = $(shell pyversions -d)
PKG = python-pefile

build: build-stamp
build-stamp:
	dh_testdir
	$(PYTHON) setup.py config build
	touch $@

clean:
	dh_testdir
	dh_testroot
	rm -rf *.pyc build build-stamp
	dh_clean 

install: build
	dh_testdir
	dh_testroot
	dh_clean -k 
	$(PYTHON) setup.py install --no-compile --root=debian/$(PKG)

binary-indep: build install
	dh_testdir
	dh_testroot
	dh_pycentral
	dh_installchangelogs CHANGES_up_to_1.2.6
	dh_installdocs
	dh_installexamples
	dh_fixperms
	chmod 0755 debian/python-pefile/usr/share/doc/python-pefile/examples/pefile-match
	dh_compress -Xexamples
	dh_installdeb
	dh_shlibdeps
	dh_gencontrol
	dh_md5sums
	dh_builddeb
binary-arch: build install

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