File: rules

package info (click to toggle)
urlwatch 2.29-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 880 kB
  • sloc: python: 4,003; sh: 53; makefile: 19
file content (17 lines) | stat: -rwxr-xr-x 648 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/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/; \
                           cp -r {dir}/share {build_dir}/../
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