File: rules

package info (click to toggle)
circlator 1.5.6-5
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 12,012 kB
  • sloc: python: 4,469; sh: 125; makefile: 11
file content (18 lines) | stat: -rwxr-xr-x 499 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/usr/bin/make -f

#DH_VERBOSE = 1
include /usr/share/dpkg/default.mk

export LC_ALL=C.UTF-8

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

override_dh_auto_test:
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
	PYTHONPATH=$(CURDIR) nosetests3 -v --where=circlator/tests
endif

override_dh_installexamples:
	dh_installexamples
	cd debian/$(DEB_SOURCE)/usr/share/doc/$(DEB_SOURCE)/examples && tar caf data.tar.xz data --owner=0 --group=0 --numeric-owner --sort=name --mode=a+rX,og-w && rm -rf data