File: rules

package info (click to toggle)
tryton-modules-customs 7.0.0-3
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 504 kB
  • sloc: python: 780; xml: 281; makefile: 11; sh: 3
file content (24 lines) | stat: -rwxr-xr-x 765 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#! /usr/bin/make -f

MAJOR := $(shell python3 setup.py --version | awk -F "." '{print $$1 "." $$2}')

# Don't run tests for Tryton modules at build time, they possibly depend
# on other modules of the same version, that possibly are not yet available
# from the archive in case of new releases. Instead the testsuite is run via
# autopkgtest.
# For the complete test suites on all supported databases refer to
# http://tests.tryton.org/
export PYBUILD_DISABLE=test

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

override_dh_auto_build:
	dh_auto_build
	sphinx-build -C doc build/html

override_dh_link:
	jdupes -rl debian/tryton-modules-customs/usr

override_dh_gencontrol:
	dh_gencontrol -- -Vversion:major="$(MAJOR)" -VAPI="tryton-server-api-$(MAJOR)"