File: rules

package info (click to toggle)
python-libpcap 0.6.1%2Bcvs.2007.07.28-2
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 128 kB
  • ctags: 116
  • sloc: ansic: 616; python: 375; makefile: 34
file content (43 lines) | stat: -rwxr-xr-x 697 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

build:
	python setup.py build

clean:
	dh_testdir
	dh_testroot
	dh_clean
	rm -rf build/
	find . -name "*.pyc" | xargs rm -f
	python setup.py clean
	rm -rf $(CURDIR)/debian/python-pylibpcap

install: clean
	dh_testdir
	dh_testroot
	dh_clean -k
	dh_installdirs

	python setup.py install --no-compile --root=$(CURDIR)/debian/python-libpcap

	dh_strip

binary-arch: install
	dh_testdir
	dh_testroot
	dh_installchangelogs ChangeLog
	dh_installdocs
	dh_installexamples
	dh_pycentral
	dh_link
	dh_compress
	dh_fixperms
	dh_installdeb
	dh_gencontrol
	dh_md5sums
	dh_builddeb

binary-indep: 

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