changeset 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 34c6b714c8cd
children 0eec7988fdc0
files Makefile
diffstat 1 files changed, 8 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/Makefile	Mon May 11 16:06:14 2026 +0200
+++ b/Makefile	Mon May 11 16:16:51 2026 +0200
@@ -4,10 +4,10 @@
 # SPDX-License-Identifier: MIT
 # :-
 
-.PHONY: help all clean distclean dist export build tests flake8 docs clean-docs clean-docs-html pdf clean-pdf install-dev install-docs
+.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
 
 help:
-	@echo Targets: help, clean, distclean, export, dist, build, tests docs clean-docs
+	@echo Targets: help, clean, distclean, export, dist, build, tests, docs clean-docs
 
 all: tests flake8
 
@@ -34,20 +34,22 @@
 	-flake8 pygments_lexer_pseudocode2
 	-flake8 tests
 
-docs:
-	(cd docs && make html)
+docs: docs-html docs-pdf
 
 clean-docs:
 	(cd docs && make clean)
 
+docs-html:
+	(cd docs && make html)
+
 clean-docs-html:
 	rm -rf docs/_build/html
 
-pdf:
+docs-pdf:
 	(cd docs && make latex)
 	(cd docs/_build/latex && gmake)
 
-clean-pdf:
+clean-docs-pdf:
 	rm -rf docs/_build/latex
 
 install-dev: