Mercurial > hgrepos > Python > libs > pygments-lexer-pseudocode2
annotate Makefile @ 44:742496328de6
Add an "install-dev" target
| author | Franz Glasner <fzglas.hg@dom66.de> |
|---|---|
| date | Sun, 26 Apr 2026 09:40:32 +0200 |
| parents | b92f660f2461 |
| children | 6ac1ea5d2d4a |
| 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 |
|
44
742496328de6
Add an "install-dev" target
Franz Glasner <fzglas.hg@dom66.de>
parents:
16
diff
changeset
|
7 .PHONY: help all clean distclean dist build tests flake8 install-dev |
|
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 |
|
742496328de6
Add an "install-dev" target
Franz Glasner <fzglas.hg@dom66.de>
parents:
16
diff
changeset
|
33 install-dev: |
|
742496328de6
Add an "install-dev" target
Franz Glasner <fzglas.hg@dom66.de>
parents:
16
diff
changeset
|
34 python -m pip install -r requirements-dev.txt |
