File: rules

package info (click to toggle)
inotifyx 0.2.0-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, jessie, jessie-kfreebsd, sid, stretch, wheezy
  • size: 128 kB
  • ctags: 126
  • sloc: python: 851; ansic: 229; makefile: 48
file content (67 lines) | stat: -rwxr-xr-x 1,248 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
#!/usr/bin/make -f

PKG_NAME=inotifyx
PKG_VER=$(shell dpkg-parsechangelog | sed -rne 's,^Version: ([^-]+).*,\1,p')

PYVERS=$(shell pyversions -vr)

-include /usr/share/python/python.mk

get-orig-source:
	uscan --force-download --rename --download-version=$(PKG_VER) --destdir=.

build: build-arch build-indep

build-arch: $(PYVERS:%=build-python%)
	touch $@

build-indep: $(PYVERS:%=build-python%)
	touch $@

build-python%:
	dh_testdir
	python$* setup.py build
	touch $@

clean: $(PYVERS:%=clean-python%)
	touch $@

clean-python%: 
	dh_testdir
	dh_testroot

	python$* setup.py clean --all
	[ ! -e html ] || rm -rf html
	[ ! -f setuplib.pyc ] || rm -rf setuplib.pyc

	dh_clean 

install: $(PYVERS:%=install-python%)
	touch $@

install-python%: build
	dh_testdir
	dh_testroot
	dh_installdirs

	python$* setup.py install --root $(CURDIR)/debian/python-inotifyx ${py_setup_install_args}

binary-indep: build install

binary-arch: build install
		dh_testdir
		dh_testroot
		dh_installdocs
		dh_installchangelogs NEWS
		dh_python2
		dh_compress
		dh_fixperms
		dh_strip
		dh_installdeb
		dh_shlibdeps
		dh_gencontrol
		dh_md5sums
		dh_builddeb

binary: binary-indep binary-arch
.PHONY: build clean binary-indep binary-arch binary install get-orig-source