File: rules

package info (click to toggle)
tagpy 2013.1-9
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 492 kB
  • sloc: python: 1,306; cpp: 811; makefile: 31; sh: 5
file content (33 lines) | stat: -rwxr-xr-x 1,016 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
#!/usr/bin/make -f

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

%:
	dh $@ --with python3 --buildsystem=pybuild

PYVERSIONS=$(shell py3versions -v -r)
include /usr/share/python3/python.mk

override_dh_compress:
	dh_compress -X examples

override_dh_auto_configure-%:
	SITECONF_NAME=siteconf$*.py python$* ./configure.py \
			--taglib-inc-dir=`pkg-config --cflags-only-I taglib | sed 's/-I//'` \
			--boost-python-libname=boost_python`echo $* | tr -d .`

override_dh_auto_configure: $(PYVERSIONS:%=override_dh_auto_configure-%)

override_dh_auto_build-%:
	SITECONF_NAME=siteconf$*.py python$* setup.py build -b build$*

override_dh_auto_build: $(PYVERSIONS:%=override_dh_auto_build-%)

override_dh_auto_install-%:
	SITECONF_NAME=siteconf$*.py python$* setup.py build -b build$* install --no-compile --root=debian/$(call py_pkgname,python-tagpy,$*) --install-layout=deb

override_dh_auto_install: $(PYVERSIONS:%=override_dh_auto_install-%)

override_dh_auto_clean:
	rm -rf build* siteconf*.py *.pyc