view Makefile @ 167:ddefcc20367c

More static and/or dynamic metadata into README and project's init: release date, revision. While there bump the version to 3.0.0.dev1.
author Franz Glasner <fzglas.hg@dom66.de>
date Sun, 10 May 2026 15:27:18 +0200
parents 6ac1ea5d2d4a
children 4b87a9ecffdd
line wrap: on
line source

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

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

help:
	@echo Targets: help, clean, distclean, export, dist, build, tests docs clean-docs

all: tests flake8

build:
	python -m build

dist: distclean build

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

export:
	rm -rf __arch
	hg kwarchive __arch

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 .