2012-06-16 03:25:16 +04:00
|
|
|
ACLOCAL_AMFLAGS = -I osm2pgsql/m4
|
2014-09-07 19:02:10 +04:00
|
|
|
AUTOMAKE_OPTIONS = -Wno-portability
|
2012-06-16 03:25:16 +04:00
|
|
|
|
|
|
|
SUBDIRS = osm2pgsql module nominatim
|
|
|
|
|
2014-09-07 19:02:10 +04:00
|
|
|
NOMINATIM_SERVER ?= $(shell echo a | php -F lib/init.php -E 'echo CONST_Website_BaseURL."\n";')
|
|
|
|
NOMINATIM_DATABASE ?= $(shell echo a | php -F lib/init.php -E 'echo DB::parseDSN(CONST_Database_DSN)["database"];')
|
|
|
|
|
2012-06-16 03:25:16 +04:00
|
|
|
install:
|
|
|
|
@echo Nominatim needs to be executed directly from this directory. No install necessary.
|
2014-09-07 19:02:10 +04:00
|
|
|
|
|
|
|
test:
|
2014-09-07 22:11:21 +04:00
|
|
|
cd tests; NOMINATIM_SERVER=${NOMINATIM_SERVER} lettuce -t -Fail -t -poldi-only
|
2014-09-07 19:02:10 +04:00
|
|
|
|
|
|
|
test-fast:
|
2014-09-07 22:11:21 +04:00
|
|
|
cd tests; NOMINATIM_SERVER=${NOMINATIM_SERVER} NOMINATIM_REUSE_TEMPLATE=1 lettuce -t -Fail -t -poldi-only
|
2014-09-07 19:02:10 +04:00
|
|
|
|
|
|
|
test-db:
|
2014-09-10 22:52:37 +04:00
|
|
|
cd tests; NOMINATIM_SERVER=${NOMINATIM_SERVER} lettuce -t -Fail -t -poldi-only features/db
|
2014-09-07 19:02:10 +04:00
|
|
|
|
|
|
|
test-db-fast:
|
2014-09-10 22:52:37 +04:00
|
|
|
cd tests; NOMINATIM_SERVER=${NOMINATIM_SERVER} NOMINATIM_REUSE_TEMPLATE=1 lettuce -t -Fail -t -poldi-only features/db
|
2014-09-07 19:02:10 +04:00
|
|
|
|
|
|
|
test-api:
|
2014-09-07 22:11:21 +04:00
|
|
|
cd tests; NOMINATIM_SERVER=${NOMINATIM_SERVER} lettuce -t -Fail -t -poldi-only features/api
|
2014-09-07 19:02:10 +04:00
|
|
|
|
|
|
|
.PHONY: test test-fast test-db test-db-fast test-api
|