| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
doc_dir=doc/user_manual/ |
| 8 |
rst_docs=$(wildcard $(addsuffix /*.rst, $(doc_dir))) |
| 9 |
html_docs=$(patsubst %.rst, %.html, $(rst_docs)) |
| 10 |
|
| 11 |
%: |
| 12 |
dh $* --with python3 --buildsystem=pybuild |
| 13 |
|
| 14 |
ifneq (,$(filter parallel=%,$(DEB_BUILD_OPTIONS))) |
| 15 |
SELFTEST_CONCURRENCY = BRZ_CONCURRENCY=$(patsubst parallel=%,%,$(filter parallel=%,$(DEB_BUILD_OPTIONS))) |
| 16 |
SELFTEST_PARALLEL = --parallel=fork |
| 17 |
else |
| 18 |
SELFTEST_CONCURRENCY = |
| 19 |
SELFTEST_PARALLEL = |
| 20 |
endif |
| 21 |
|
| 22 |
override_dh_auto_test: |
| 23 |
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS))) |
| 24 |
$(SELFTEST_CONCURRENCY) BRZ_PLUGINS_AT=debian@$(CURDIR) BRZ_PLUGIN_PATH=-site:-user /usr/bin/brz selftest \ |
| 25 |
$(SELFTEST_PARALLEL) -v -s bp.debian |
| 26 |
endif |
| 27 |
|
| 28 |
%.html: %.rst |
| 29 |
rst2html --stylesheet-path=$(doc_dir)/user_manual.css $< > $@ |
| 30 |
|
| 31 |
override_dh_auto_build-indep: $(html_docs) |
| 32 |
rst2html README.rst > README.html |
| 33 |
|
| 34 |
override_dh_auto_clean: |
| 35 |
dh_auto_clean |
| 36 |
rm -f $(html_docs) |
| 37 |
rm -f README.html |