]> git.openstreetmap.org Git - nominatim.git/blob - Makefile
build man page without CMake
[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 manpage:
41         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
42
43
44 .PHONY: tests mypy pytest lint bdd build clean-build build-db build-api doc serve-doc manpage