File: rules

package info (click to toggle)
meliae 0.4.0%2Bbzr199-2
  • links: PTS
  • area: main
  • in suites: stretch
  • size: 408 kB
  • ctags: 516
  • sloc: python: 2,596; ansic: 502; makefile: 21; sh: 2
file content (24 lines) | stat: -rwxr-xr-x 661 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/usr/bin/make -f

PYVERS = $(shell pyversions -r -v)

override_dh_auto_test:
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
	$(MAKE) check
endif

override_dh_install:
	# Install everything excluding the *_d.so debug extensions to python-meliae
	dh_install -X"*_d.so" "debian/tmp/*" -p python-meliae
	# Install the debug extensions to python-meliae-dbg
	dh_install "debian/tmp/usr/lib/python*/*-packages/meliae/*_d.so" -p python-meliae-dbg
	# Continue with regular dh_install
	dh_install

override_dh_strip:
ifeq (,$(filter nostrip,$(DEB_BUILD_OPTIONS)))
	dh_strip --dbg-package=python-meliae-dbg
endif

%:
	dh $* --with python2 --buildsystem=python_distutils