[sagemath] 03/04: Add a separate clean-docbuild target, helpful for debugging/testing

Ximin Luo infinity0 at debian.org
Fri Oct 7 17:35:16 UTC 2016


This is an automated email from the git hooks/post-receive script.

infinity0 pushed a commit to branch master
in repository sagemath.

commit 419bfe6478e6a0d9c97094210c83dd0c3f86b63a
Author: Ximin Luo <infinity0 at debian.org>
Date:   Fri Oct 7 16:57:40 2016 +0200

    Add a separate clean-docbuild target, helpful for debugging/testing
---
 debian/rules | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)

diff --git a/debian/rules b/debian/rules
index 7f00bf7..98bc805 100755
--- a/debian/rules
+++ b/debian/rules
@@ -61,7 +61,14 @@ ptestlong:
 	# (and then this target) without trying (override_)dh_auto_build again.
 	cd sage && ./sage -t -p --all --long $(EXTRA_SAGE_TEST_FLAGS) --logfile=logs/ptestlong.log
 
-reset: clean
+# If the docbuild fails and you want to try again, you should run this first.
+# Otherwise the docbuild gets slower and slower as it re-reads information from
+# its build directory. At least that's my (infinity0) impression; I didn't
+# investigate this in too much detail yet.
+clean-docbuild:
+	rm -rf $$HOME/.local/share/sagemath/doc
+
+reset: clean clean-docbuild
 	QUILT_PATCHES=debian/patches quilt pop -af || true
 	cd sage; git clean -fdx && git submodule update --force
 	QUILT_PATCHES=debian/patches quilt push -a
@@ -75,3 +82,5 @@ build-dep:
 
 failed-tests:
 	grep "Failed example:" sage/logs/ptestlong.log | awk '{s++} END {print s}'
+
+.PHONY: clean-doc-build reset build-dep

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/sagemath.git



More information about the debian-science-commits mailing list