File: rules

package info (click to toggle)
python-greenlet 0.3.1-2.5
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 392 kB
  • sloc: ansic: 1,506; python: 666; makefile: 14
file content (22 lines) | stat: -rwxr-xr-x 508 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
#!/usr/bin/make -f

export CFLAGS := -O2

%:
	dh $@

override_dh_auto_clean:
	rm -rf build/
	find . -type f \( -name '*.py[co]' -or -name '*.so' -or -name '*.log' \) -delete

override_dh_strip:
ifeq (,$(filter nostrip,$(DEB_BUILD_OPTIONS)))
	# See bug #576014
	dh_strip --dbg-package=python-greenlet-dbg
	cd debian/python-greenlet-dbg/usr/lib/debug/usr/lib && mv pyshared pymodules
endif

override_dh_installdocs:
	dh_installdocs --link-doc=python-greenlet

.PHONY: override_dh_strip override_dh_installdocs