File: rules

package info (click to toggle)
grapefruit 0.1~a3%2Bdfsg-8
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 428 kB
  • sloc: python: 1,883; makefile: 74
file content (28 lines) | stat: -rwxr-xr-x 751 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

export PYBUILD_NAME=grapefruit

PYVERS :=  $(shell pyversions -r)
UPSTREAM = $(shell dpkg-parsechangelog | egrep '^Version: ' | cut -d ' ' -f 2- | sed 's/+dfsg.*//')

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

override_dh_auto_build:
	dh_auto_build
	PYTHONPATH=$(shell pwd) make -C doc/ html

override_dh_auto_clean:
	dh_auto_clean
	rm -rf docs/_build

override_dh_auto_test:
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
	set -ex; \
	for py in $(shell pyversions -r) $(shell py3versions -r); do \
		PYTHONPATH=$(CURDIR) $$py -m pytest; \
	done
endif

get-orig-source:
	gzip -cd '../grapefruit_$(UPSTREAM).orig.tar.gz' | tar --delete doc/_static/GrapeFruit.png | gzip > '../grapefruit_$(UPSTREAM)+dfsg.orig.tar.gz'