File: rules

package info (click to toggle)
pylibmc 1.5.2-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 568 kB
  • ctags: 647
  • sloc: ansic: 2,421; python: 987; makefile: 98
file content (20 lines) | stat: -rwxr-xr-x 595 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/usr/bin/make -f

export PYBUILD_NAME=pylibmc
# The name of the next export needs to be changed if we switch to
# python3-sphinx: PYBUILD_AFTER_BUILD_python3
# Otherwise the imports in docs/conf.py would not work.
export PYBUILD_AFTER_BUILD_python2=PYLIBMC_DIR={build_dir} sphinx-build -b html -d docs/.build/.doctrees -N docs docs/.build/html
export PYBUILD_DISABLE=test

export DEB_BUILD_MAINT_OPTIONS=hardening=+bindnow

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

override_dh_clean:
	rm -rf docs/.build
	dh_clean

override_dh_compress:
	dh_compress -X changelog.html