File: rules

package info (click to toggle)
bepasty 0.6.0-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 760 kB
  • sloc: python: 2,953; javascript: 1,468; makefile: 158; sh: 25
file content (19 lines) | stat: -rwxr-xr-x 539 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
#! /usr/bin/make -f

export PYBUILD_NAME=bepasty
export PYBUILD_DISABLE=test
%:
	dh $@ --with python3,sphinxdoc --buildsystem=pybuild

override_dh_auto_clean:
	cp src/bepasty/_version.py debian/old_version.py
	dh_auto_clean || true
	rm -rf .pybuild
	rm -rf .pytest_cache
	mv debian/old_version.py src/bepasty/_version.py

override_dh_auto_build:
	dh_auto_build
	cd docs ; make html PYTHONPATH=../src ; cd -
	cd debian ; rst2man bepasty-server.1.rst bepasty-server.1 ; cd -
	cd debian ; rst2man bepasty-object.1.rst bepasty-object.1 ; cd -