Mercurial > hgrepos > Python > libs > pygments-lexer-pseudocode2
annotate Makefile @ 147:df9b4962c203
Remove the Python "code-block" that has been used for development (comparison) reasons
| author | Franz Glasner <fzglas.hg@dom66.de> |
|---|---|
| date | Thu, 07 May 2026 13:26:01 +0200 |
| parents | 6ac1ea5d2d4a |
| children | ddefcc20367c |
| 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 |
|
45
6ac1ea5d2d4a
Begin documentation: add the Sphinx generated configuration as-is
Franz Glasner <fzglas.hg@dom66.de>
parents:
44
diff
changeset
|
7 .PHONY: help all clean distclean dist build tests flake8 docs clean-docs clean-docs-html 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: |
|
db0171f62e5a
A Makefile to help building and testing
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
10 @echo Targets: help, clean, distclean, dist, build |
|
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 |
|
db0171f62e5a
A Makefile to help building and testing
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
22 clean: |
|
db0171f62e5a
A Makefile to help building and testing
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
23 rm -rf __arch/ |
|
db0171f62e5a
A Makefile to help building and testing
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
24 find . -name '*.pyc' -delete |
|
16
b92f660f2461
Begin a test infrastructure: using unittest and flake8.
Franz Glasner <fzglas.hg@dom66.de>
parents:
15
diff
changeset
|
25 |
|
b92f660f2461
Begin a test infrastructure: using unittest and flake8.
Franz Glasner <fzglas.hg@dom66.de>
parents:
15
diff
changeset
|
26 tests: |
|
b92f660f2461
Begin a test infrastructure: using unittest and flake8.
Franz Glasner <fzglas.hg@dom66.de>
parents:
15
diff
changeset
|
27 -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
|
28 |
|
b92f660f2461
Begin a test infrastructure: using unittest and flake8.
Franz Glasner <fzglas.hg@dom66.de>
parents:
15
diff
changeset
|
29 flake8: |
|
b92f660f2461
Begin a test infrastructure: using unittest and flake8.
Franz Glasner <fzglas.hg@dom66.de>
parents:
15
diff
changeset
|
30 -flake8 pygments_lexer_pseudocode2 |
|
b92f660f2461
Begin a test infrastructure: using unittest and flake8.
Franz Glasner <fzglas.hg@dom66.de>
parents:
15
diff
changeset
|
31 -flake8 tests |
|
44
742496328de6
Add an "install-dev" target
Franz Glasner <fzglas.hg@dom66.de>
parents:
16
diff
changeset
|
32 |
|
45
6ac1ea5d2d4a
Begin documentation: add the Sphinx generated configuration as-is
Franz Glasner <fzglas.hg@dom66.de>
parents:
44
diff
changeset
|
33 docs: |
|
6ac1ea5d2d4a
Begin documentation: add the Sphinx generated configuration as-is
Franz Glasner <fzglas.hg@dom66.de>
parents:
44
diff
changeset
|
34 (cd docs && make html) |
|
6ac1ea5d2d4a
Begin documentation: add the Sphinx generated configuration as-is
Franz Glasner <fzglas.hg@dom66.de>
parents:
44
diff
changeset
|
35 |
|
6ac1ea5d2d4a
Begin documentation: add the Sphinx generated configuration as-is
Franz Glasner <fzglas.hg@dom66.de>
parents:
44
diff
changeset
|
36 clean-docs: |
|
6ac1ea5d2d4a
Begin documentation: add the Sphinx generated configuration as-is
Franz Glasner <fzglas.hg@dom66.de>
parents:
44
diff
changeset
|
37 (cd docs && make clean) |
|
6ac1ea5d2d4a
Begin documentation: add the Sphinx generated configuration as-is
Franz Glasner <fzglas.hg@dom66.de>
parents:
44
diff
changeset
|
38 |
|
6ac1ea5d2d4a
Begin documentation: add the Sphinx generated configuration as-is
Franz Glasner <fzglas.hg@dom66.de>
parents:
44
diff
changeset
|
39 clean-docs-html: |
|
6ac1ea5d2d4a
Begin documentation: add the Sphinx generated configuration as-is
Franz Glasner <fzglas.hg@dom66.de>
parents:
44
diff
changeset
|
40 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
|
41 |
|
44
742496328de6
Add an "install-dev" target
Franz Glasner <fzglas.hg@dom66.de>
parents:
16
diff
changeset
|
42 install-dev: |
|
742496328de6
Add an "install-dev" target
Franz Glasner <fzglas.hg@dom66.de>
parents:
16
diff
changeset
|
43 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
|
44 |
|
6ac1ea5d2d4a
Begin documentation: add the Sphinx generated configuration as-is
Franz Glasner <fzglas.hg@dom66.de>
parents:
44
diff
changeset
|
45 install-docs: |
|
6ac1ea5d2d4a
Begin documentation: add the Sphinx generated configuration as-is
Franz Glasner <fzglas.hg@dom66.de>
parents:
44
diff
changeset
|
46 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
|
47 python -m pip install --editable . |
