Mercurial > hgrepos > Python > libs > pygments-lexer-pseudocode2
annotate Makefile @ 171:4b87a9ecffdd
The first somewhat useable version of documentation in PDF.
Using lualatex and the IBM Plex fonts.
BUGS:
- line-breaks
- missing symbols
| author | Franz Glasner <fzglas.hg@dom66.de> |
|---|---|
| date | Mon, 11 May 2026 14:38:59 +0200 |
| parents | ddefcc20367c |
| children | b291f1e2319d |
| rev | line source |
|---|---|
|
15
db0171f62e5a
A Makefile to help building and testing
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
1 # dev and build helper |
|
db0171f62e5a
A Makefile to help building and testing
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
2 # :- |
|
db0171f62e5a
A Makefile to help building and testing
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
3 # SPDX-FileCopyrightText: © 2026 Franz Glasner |
|
db0171f62e5a
A Makefile to help building and testing
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
4 # SPDX-License-Identifier: MIT |
|
db0171f62e5a
A Makefile to help building and testing
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
5 # :- |
|
db0171f62e5a
A Makefile to help building and testing
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
6 |
|
171
4b87a9ecffdd
The first somewhat useable version of documentation in PDF.
Franz Glasner <fzglas.hg@dom66.de>
parents:
167
diff
changeset
|
7 .PHONY: help all clean distclean dist export build tests flake8 docs clean-docs clean-docs-html pdf clean-pdf install-dev install-docs |
|
15
db0171f62e5a
A Makefile to help building and testing
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
8 |
|
db0171f62e5a
A Makefile to help building and testing
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
9 help: |
|
167
ddefcc20367c
More static and/or dynamic metadata into README and project's init: release date, revision.
Franz Glasner <fzglas.hg@dom66.de>
parents:
45
diff
changeset
|
10 @echo Targets: help, clean, distclean, export, dist, build, tests docs clean-docs |
|
15
db0171f62e5a
A Makefile to help building and testing
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
11 |
|
16
b92f660f2461
Begin a test infrastructure: using unittest and flake8.
Franz Glasner <fzglas.hg@dom66.de>
parents:
15
diff
changeset
|
12 all: tests flake8 |
|
b92f660f2461
Begin a test infrastructure: using unittest and flake8.
Franz Glasner <fzglas.hg@dom66.de>
parents:
15
diff
changeset
|
13 |
|
15
db0171f62e5a
A Makefile to help building and testing
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
14 build: |
|
db0171f62e5a
A Makefile to help building and testing
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
15 python -m build |
|
db0171f62e5a
A Makefile to help building and testing
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
16 |
|
db0171f62e5a
A Makefile to help building and testing
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
17 dist: distclean build |
|
db0171f62e5a
A Makefile to help building and testing
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
18 |
|
db0171f62e5a
A Makefile to help building and testing
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
19 distclean: clean |
|
db0171f62e5a
A Makefile to help building and testing
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
20 rm -rf dist/ *.egg-info |
|
db0171f62e5a
A Makefile to help building and testing
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
21 |
|
167
ddefcc20367c
More static and/or dynamic metadata into README and project's init: release date, revision.
Franz Glasner <fzglas.hg@dom66.de>
parents:
45
diff
changeset
|
22 export: |
|
ddefcc20367c
More static and/or dynamic metadata into README and project's init: release date, revision.
Franz Glasner <fzglas.hg@dom66.de>
parents:
45
diff
changeset
|
23 rm -rf __arch |
|
ddefcc20367c
More static and/or dynamic metadata into README and project's init: release date, revision.
Franz Glasner <fzglas.hg@dom66.de>
parents:
45
diff
changeset
|
24 hg kwarchive __arch |
|
ddefcc20367c
More static and/or dynamic metadata into README and project's init: release date, revision.
Franz Glasner <fzglas.hg@dom66.de>
parents:
45
diff
changeset
|
25 |
|
15
db0171f62e5a
A Makefile to help building and testing
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
26 clean: |
|
db0171f62e5a
A Makefile to help building and testing
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
27 rm -rf __arch/ |
|
db0171f62e5a
A Makefile to help building and testing
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
28 find . -name '*.pyc' -delete |
|
16
b92f660f2461
Begin a test infrastructure: using unittest and flake8.
Franz Glasner <fzglas.hg@dom66.de>
parents:
15
diff
changeset
|
29 |
|
b92f660f2461
Begin a test infrastructure: using unittest and flake8.
Franz Glasner <fzglas.hg@dom66.de>
parents:
15
diff
changeset
|
30 tests: |
|
b92f660f2461
Begin a test infrastructure: using unittest and flake8.
Franz Glasner <fzglas.hg@dom66.de>
parents:
15
diff
changeset
|
31 -python -m unittest discover -s tests |
|
b92f660f2461
Begin a test infrastructure: using unittest and flake8.
Franz Glasner <fzglas.hg@dom66.de>
parents:
15
diff
changeset
|
32 |
|
b92f660f2461
Begin a test infrastructure: using unittest and flake8.
Franz Glasner <fzglas.hg@dom66.de>
parents:
15
diff
changeset
|
33 flake8: |
|
b92f660f2461
Begin a test infrastructure: using unittest and flake8.
Franz Glasner <fzglas.hg@dom66.de>
parents:
15
diff
changeset
|
34 -flake8 pygments_lexer_pseudocode2 |
|
b92f660f2461
Begin a test infrastructure: using unittest and flake8.
Franz Glasner <fzglas.hg@dom66.de>
parents:
15
diff
changeset
|
35 -flake8 tests |
|
44
742496328de6
Add an "install-dev" target
Franz Glasner <fzglas.hg@dom66.de>
parents:
16
diff
changeset
|
36 |
|
45
6ac1ea5d2d4a
Begin documentation: add the Sphinx generated configuration as-is
Franz Glasner <fzglas.hg@dom66.de>
parents:
44
diff
changeset
|
37 docs: |
|
6ac1ea5d2d4a
Begin documentation: add the Sphinx generated configuration as-is
Franz Glasner <fzglas.hg@dom66.de>
parents:
44
diff
changeset
|
38 (cd docs && make html) |
|
6ac1ea5d2d4a
Begin documentation: add the Sphinx generated configuration as-is
Franz Glasner <fzglas.hg@dom66.de>
parents:
44
diff
changeset
|
39 |
|
6ac1ea5d2d4a
Begin documentation: add the Sphinx generated configuration as-is
Franz Glasner <fzglas.hg@dom66.de>
parents:
44
diff
changeset
|
40 clean-docs: |
|
6ac1ea5d2d4a
Begin documentation: add the Sphinx generated configuration as-is
Franz Glasner <fzglas.hg@dom66.de>
parents:
44
diff
changeset
|
41 (cd docs && make clean) |
|
6ac1ea5d2d4a
Begin documentation: add the Sphinx generated configuration as-is
Franz Glasner <fzglas.hg@dom66.de>
parents:
44
diff
changeset
|
42 |
|
6ac1ea5d2d4a
Begin documentation: add the Sphinx generated configuration as-is
Franz Glasner <fzglas.hg@dom66.de>
parents:
44
diff
changeset
|
43 clean-docs-html: |
|
6ac1ea5d2d4a
Begin documentation: add the Sphinx generated configuration as-is
Franz Glasner <fzglas.hg@dom66.de>
parents:
44
diff
changeset
|
44 rm -rf docs/_build/html |
|
6ac1ea5d2d4a
Begin documentation: add the Sphinx generated configuration as-is
Franz Glasner <fzglas.hg@dom66.de>
parents:
44
diff
changeset
|
45 |
|
171
4b87a9ecffdd
The first somewhat useable version of documentation in PDF.
Franz Glasner <fzglas.hg@dom66.de>
parents:
167
diff
changeset
|
46 pdf: |
|
4b87a9ecffdd
The first somewhat useable version of documentation in PDF.
Franz Glasner <fzglas.hg@dom66.de>
parents:
167
diff
changeset
|
47 (cd docs && make latex) |
|
4b87a9ecffdd
The first somewhat useable version of documentation in PDF.
Franz Glasner <fzglas.hg@dom66.de>
parents:
167
diff
changeset
|
48 (cd docs/_build/latex && gmake) |
|
4b87a9ecffdd
The first somewhat useable version of documentation in PDF.
Franz Glasner <fzglas.hg@dom66.de>
parents:
167
diff
changeset
|
49 |
|
4b87a9ecffdd
The first somewhat useable version of documentation in PDF.
Franz Glasner <fzglas.hg@dom66.de>
parents:
167
diff
changeset
|
50 clean-pdf: |
|
4b87a9ecffdd
The first somewhat useable version of documentation in PDF.
Franz Glasner <fzglas.hg@dom66.de>
parents:
167
diff
changeset
|
51 rm -rf docs/_build/latex |
|
4b87a9ecffdd
The first somewhat useable version of documentation in PDF.
Franz Glasner <fzglas.hg@dom66.de>
parents:
167
diff
changeset
|
52 |
|
44
742496328de6
Add an "install-dev" target
Franz Glasner <fzglas.hg@dom66.de>
parents:
16
diff
changeset
|
53 install-dev: |
|
742496328de6
Add an "install-dev" target
Franz Glasner <fzglas.hg@dom66.de>
parents:
16
diff
changeset
|
54 python -m pip install -r requirements-dev.txt |
|
45
6ac1ea5d2d4a
Begin documentation: add the Sphinx generated configuration as-is
Franz Glasner <fzglas.hg@dom66.de>
parents:
44
diff
changeset
|
55 |
|
6ac1ea5d2d4a
Begin documentation: add the Sphinx generated configuration as-is
Franz Glasner <fzglas.hg@dom66.de>
parents:
44
diff
changeset
|
56 install-docs: |
|
6ac1ea5d2d4a
Begin documentation: add the Sphinx generated configuration as-is
Franz Glasner <fzglas.hg@dom66.de>
parents:
44
diff
changeset
|
57 python -m pip install -r requirements-docs.txt |
|
6ac1ea5d2d4a
Begin documentation: add the Sphinx generated configuration as-is
Franz Glasner <fzglas.hg@dom66.de>
parents:
44
diff
changeset
|
58 python -m pip install --editable . |
