X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/6511821001351007df262c6732fdde51b30b2f91..2c8be0704b764e38f15e4ff5a6625dc8e7cfbaa3:/Makefile?ds=sidebyside diff --git a/Makefile b/Makefile index 03ddafac..9e914850 100644 --- a/Makefile +++ b/Makefile @@ -2,31 +2,43 @@ all: # Building of wheels -build: build-core build-db build-api +build: clean-build build-db build-api -build-core: - cd packaging/nominatim-core; python3 -m build . --outdir ../dist/ +clean-build: + rm -f dist/* build-db: - cd packaging/nominatim-db; python3 -m build . --outdir ../dist/ + python3 -m build packaging/nominatim-db --outdir dist/ build-api: - cd packaging/nominatim-api; python3 -m build . --outdir ../dist/ + python3 -m build packaging/nominatim-api --outdir dist/ # Tests -tests: mypy lint pytest +tests: mypy lint pytest bdd mypy: - python3 -m mypy --strict src + mypy --strict --python-version 3.8 src pytest: - python3 -m pytest test/python + pytest test/python lint: - python3 -m pylint src + flake8 src bdd: cd test/bdd; behave -DREMOVE_TEMPLATE=1 -.PHONY: tests mypy pytest lint bdd build build-core build-db build-api +# Documentation + +doc: + mkdocs build + +serve-doc: + mkdocs serve + +manpage: + argparse-manpage --pyfile man/create-manpage.py --function get_parser --project-name Nominatim --url https://nominatim.org > man/nominatim.1 --author 'the Nominatim developer community' --author-email info@nominatim.org + + +.PHONY: tests mypy pytest lint bdd build clean-build build-db build-api doc serve-doc manpage