view Makefile @ 144:b616f9645e37

More referencing with internal and external links
author Franz Glasner <fzglas.hg@dom66.de>
date Thu, 07 May 2026 12:21:53 +0200
parents 6ac1ea5d2d4a
children ddefcc20367c
line wrap: on
line source

# dev and build helper
# :-
# SPDX-FileCopyrightText: © 2026 Franz Glasner
# SPDX-License-Identifier: MIT
# :-

.PHONY: help all clean distclean dist build tests flake8 docs clean-docs clean-docs-html install-dev install-docs

help:
	@echo Targets: help, clean, distclean, dist, build

all: tests flake8

build:
	python -m build

dist: distclean build

distclean: clean
	rm -rf dist/ *.egg-info

clean:
	rm -rf __arch/
	find . -name '*.pyc' -delete

tests:
	-python -m unittest discover -s tests

flake8:
	-flake8 pygments_lexer_pseudocode2
	-flake8 tests

docs:
	(cd docs && make html)

clean-docs:
	(cd docs && make clean)

clean-docs-html:
	rm -rf docs/_build/html

install-dev:
	python -m pip install -r requirements-dev.txt

install-docs:
	python -m pip install -r requirements-docs.txt
	python -m pip install --editable .