comparison Makefile @ 177:b291f1e2319d

Refactor make targets because of PDF generation
author Franz Glasner <fzglas.hg@dom66.de>
date Mon, 11 May 2026 16:16:51 +0200
parents 4b87a9ecffdd
children 0eec7988fdc0
comparison
equal deleted inserted replaced
176:34c6b714c8cd 177:b291f1e2319d
2 # :- 2 # :-
3 # SPDX-FileCopyrightText: © 2026 Franz Glasner 3 # SPDX-FileCopyrightText: © 2026 Franz Glasner
4 # SPDX-License-Identifier: MIT 4 # SPDX-License-Identifier: MIT
5 # :- 5 # :-
6 6
7 .PHONY: help all clean distclean dist export build tests flake8 docs clean-docs clean-docs-html pdf clean-pdf install-dev install-docs 7 .PHONY: help all clean distclean dist export build tests flake8 docs clean-docs docs-html clean-docs-html docs-pdf clean-docs-pdf install-dev install-docs
8 8
9 help: 9 help:
10 @echo Targets: help, clean, distclean, export, dist, build, tests docs clean-docs 10 @echo Targets: help, clean, distclean, export, dist, build, tests, docs clean-docs
11 11
12 all: tests flake8 12 all: tests flake8
13 13
14 build: 14 build:
15 python -m build 15 python -m build
32 32
33 flake8: 33 flake8:
34 -flake8 pygments_lexer_pseudocode2 34 -flake8 pygments_lexer_pseudocode2
35 -flake8 tests 35 -flake8 tests
36 36
37 docs: 37 docs: docs-html docs-pdf
38 (cd docs && make html)
39 38
40 clean-docs: 39 clean-docs:
41 (cd docs && make clean) 40 (cd docs && make clean)
42 41
42 docs-html:
43 (cd docs && make html)
44
43 clean-docs-html: 45 clean-docs-html:
44 rm -rf docs/_build/html 46 rm -rf docs/_build/html
45 47
46 pdf: 48 docs-pdf:
47 (cd docs && make latex) 49 (cd docs && make latex)
48 (cd docs/_build/latex && gmake) 50 (cd docs/_build/latex && gmake)
49 51
50 clean-pdf: 52 clean-docs-pdf:
51 rm -rf docs/_build/latex 53 rm -rf docs/_build/latex
52 54
53 install-dev: 55 install-dev:
54 python -m pip install -r requirements-dev.txt 56 python -m pip install -r requirements-dev.txt
55 57