File: rules

package info (click to toggle)
qcat 1.1.0-9
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 16,048 kB
  • sloc: python: 2,617; sh: 43; makefile: 10
file content (17 lines) | stat: -rwxr-xr-x 582 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/usr/bin/make -f

# DH_VERBOSE := 1
export LC_ALL=C.UTF-8

include /usr/share/dpkg/default.mk

export PYBUILD_BEFORE_TEST=cp -ar {dir}/$(DEB_SOURCE)/test {build_dir}/$(DEB_SOURCE) ;

%:
	dh $@ --buildsystem=pybuild

execute_after_dh_install:
	find debian -name .coverage -delete
	mkdir -p debian/$(DEB_SOURCE)-examples/usr/share/doc/$(DEB_SOURCE)/examples/$(DEB_SOURCE)
	mv debian/$(DEB_SOURCE)/usr/lib/python3*/dist-packages/$(DEB_SOURCE)/test debian/$(DEB_SOURCE)-examples/usr/share/doc/$(DEB_SOURCE)/examples/$(DEB_SOURCE)
	find debian -name __pycache__ -type d | xargs rm -rf