]> git.openstreetmap.org Git - nominatim.git/blob - Makefile
29243583431092b8b3f4812c84c5ea1a894290ec
[nominatim.git] / Makefile
1 all:
2
3 # Building of wheels
4
5 build: clean-build build-db build-api
6
7 clean-build:
8         rm -f dist/*
9
10 build-db:
11         python3 -m build packaging/nominatim-db --outdir dist/
12
13 build-api:
14         python3 -m build packaging/nominatim-api --outdir dist/
15
16 # Tests
17
18 tests: mypy lint pytest bdd
19
20 mypy:
21         mypy --strict src
22
23 pytest:
24         pytest test/python
25
26 lint:
27         pylint src
28
29 bdd:
30         cd test/bdd; behave -DREMOVE_TEMPLATE=1
31
32 # Documentation
33
34 doc:
35         mkdocs build
36
37 serve-doc:
38         mkdocs serve
39
40 .PHONY: tests mypy pytest lint bdd build clean-build build-db build-api doc serve-doc