File: rules

package info (click to toggle)
urlwatch 2.22-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 692 kB
  • sloc: python: 3,431; sh: 45; makefile: 18
file content (16 lines) | stat: -rwxr-xr-x 584 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/usr/bin/make -f

#export DH_VERBOSE = 1
export PYBUILD_NAME = urlwatch

# Documentation snippets are unit-tested, thus tests need access to documentation sources
export PYBUILD_BEFORE_TEST=cp -r {dir}/docs {build_dir}/../; \
                           cp -r {dir}/lib/urlwatch/tests {build_dir}/urlwatch/
export PYBUILD_AFTER_TEST=rm -rf {build_dir}/../docs {build_dir}/urlwatch/tests

override_dh_sphinxdoc:
	sphinx-build -N -bhtml $(CURDIR)/docs/source $(CURDIR)/debian/urlwatch/usr/share/doc/urlwatch/html
	dh_sphinxdoc

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