check-undefined: $(BUILDDIR)/$(PN).log
@! grep -i 'undefined' $<
-# Use sage to doctest any \sagelisting{}s in SAGE_LISTING_DSTS.
-# The actuall command is ifdef'd so that we can comment out
-# the definition of SAGE_LISTING_DSTS without breaking the
-# default definition of the "check" target.
+# Use SageMath to doctest any \sagelisting{}s in SAGE_LISTING_DSTS.
+# The actual command is ifdef'd so that we can comment out the
+# definition of SAGE_LISTING_DSTS without breaking the default
+# definition of the "check" target. Assumes that the sage library is
+# installed somewhere known to python.
.PHONY: check-sage
check-sage: $(SAGE_LISTING_DSTS)
ifdef SAGE_LISTING_DSTS
- sage -t --timeout=0 $^
+ python -m sage.doctest --timeout=0 $^
endif
# Run a suite of checks.