# HG changeset patch # User Franz Glasner # Date 1779018012 -7200 # Node ID 6f0a46c4b79ee391452daac9c059b234bee9f776 # Parent 615b7e1b80d23f07fbb45b8c5618a0f487621a24 Add a Makefile with some build helpers. BUGS: Many missing parts yet. Documentation is fully supported. diff -r 615b7e1b80d2 -r 6f0a46c4b79e CHANGES.txt --- a/CHANGES.txt Sun May 17 13:11:40 2026 +0200 +++ b/CHANGES.txt Sun May 17 13:40:12 2026 +0200 @@ -25,6 +25,9 @@ Make the ``intersphinx_mapping`` configuration variable compatible with Sphinx 8. + **[misc]** + Begin a (BSD-)Makefile with some build helpers + 0.23.3 (2023-12-07) ~~~~~~~~~~~~~~~~~~~ diff -r 615b7e1b80d2 -r 6f0a46c4b79e Makefile --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Makefile Sun May 17 13:40:12 2026 +0200 @@ -0,0 +1,39 @@ +# dev and build helper +# :- +# SPDX-FileCopyrightText: © 2026 Franz Glasner +# SPDX-License-Identifier: BSD-3-Clause +# :- + +.PHONY: help export clean tests doc clean-doc doc-html clean-doc-html doc-pdf clean-doc-pdf + +help: + @echo Targets: help, export, clean, tests, doc, clean-doc, doc-html, clean-doc-html, doc-pdf, clean-doc-pdf + +export: + rm -rf __arch + hg kwarchive __arch + +clean: + rm -rf __arch/ + find . -name '*.pyc' -delete + +tests: + -python -m unittest discover -s tests + +doc: doc-html doc-pdf + +clean-doc: + (cd docs && gmake clean) + +doc-html: + (cd docs && gmake html) + +clean-doc-html: + rm -rf docs/_build/html + +doc-pdf: + (cd docs && gmake latex) + (cd docs/_build/latex && gmake) + +clean-doc-pdf: + rm -rf docs/_build/latex