X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/63da70685a6f0232b8f13bfa158772e035586347..7282d816c8d70fa70e199ec8e4b5b679fbaa1caa:/Makefile diff --git a/Makefile b/Makefile index 1575b72a..29243583 100644 --- a/Makefile +++ b/Makefile @@ -2,20 +2,20 @@ 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: mypy --strict src @@ -29,4 +29,12 @@ lint: 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 + +.PHONY: tests mypy pytest lint bdd build clean-build build-db build-api doc serve-doc