File: rules

package info (click to toggle)
tryton-server 5.0.4-2%2Bdeb10u1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 5,932 kB
  • sloc: python: 35,777; xml: 4,452; sh: 300; sql: 230; makefile: 88
file content (27 lines) | stat: -rwxr-xr-x 864 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
#!/usr/bin/make -f

export PYBUILD_DESTDIR_python3=debian/tryton-server
# Run tests on sqlite memory database
# For the complete test suites refer to http://tests.tryton.org/
export TRYTOND_DATABASE_URI=sqlite://
export DB_NAME=:memory:

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

override_dh_auto_clean:
	dh_auto_clean
	rm -rf build

override_dh_auto_build:
	dh_auto_build
	sphinx-build doc build/html


override_dh_installinit:
	dh_installinit --name=tryton-server --restart-after-upgrade --update-rcd-params='defaults 21'
	dh_installinit --name=tryton-server-cron --restart-after-upgrade --no-enable
	dh_installinit --name=tryton-server-worker --restart-after-upgrade --no-enable
	dh_installsystemd --name=tryton-server
	dh_installsystemd --name=tryton-server-cron@ --no-enable
	dh_installsystemd --name=tryton-server-worker@ --no-enable