comparison Makefile @ 788:6f0a46c4b79e

Add a Makefile with some build helpers. BUGS: Many missing parts yet. Documentation is fully supported.
author Franz Glasner <fzglas.hg@dom66.de>
date Sun, 17 May 2026 13:40:12 +0200
parents
children
comparison
equal deleted inserted replaced
787:615b7e1b80d2 788:6f0a46c4b79e
1 # dev and build helper
2 # :-
3 # SPDX-FileCopyrightText: © 2026 Franz Glasner
4 # SPDX-License-Identifier: BSD-3-Clause
5 # :-
6
7 .PHONY: help export clean tests doc clean-doc doc-html clean-doc-html doc-pdf clean-doc-pdf
8
9 help:
10 @echo Targets: help, export, clean, tests, doc, clean-doc, doc-html, clean-doc-html, doc-pdf, clean-doc-pdf
11
12 export:
13 rm -rf __arch
14 hg kwarchive __arch
15
16 clean:
17 rm -rf __arch/
18 find . -name '*.pyc' -delete
19
20 tests:
21 -python -m unittest discover -s tests
22
23 doc: doc-html doc-pdf
24
25 clean-doc:
26 (cd docs && gmake clean)
27
28 doc-html:
29 (cd docs && gmake html)
30
31 clean-doc-html:
32 rm -rf docs/_build/html
33
34 doc-pdf:
35 (cd docs && gmake latex)
36 (cd docs/_build/latex && gmake)
37
38 clean-doc-pdf:
39 rm -rf docs/_build/latex