File: rules

package info (click to toggle)
python-pyaudio 0.2.13-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 424 kB
  • sloc: ansic: 1,756; python: 1,698; makefile: 50
file content (28 lines) | stat: -rwxr-xr-x 550 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
#!/usr/bin/make -f
# -*- mode: makefile -*-

SPACE := 
SPACE +=

PYTHONPATH=$(subst $(SPACE),:,$(abspath $(wildcard build/lib*)))

export DEB_BUILD_MAINT_OPTIONS=hardening=+all

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

override_dh_clean:
	dh_clean
	$(RM) -rf src/PyAudio.egg-info
	$(RM) -rf debian/doctrees

override_dh_auto_build:
	dh_auto_build
	PYTHONPATH=$(PYTHONPATH) make docs

override_dh_installdocs:
	dh_installdocs --doc-main-package=python3-pyaudio -ppython-pyaudio-doc

override_dh_auto_clean:
	dh_auto_clean
	rm -rf docs