From: Sarah Hoffmann Date: Mon, 19 Apr 2021 14:06:43 +0000 (+0200) Subject: Merge remote-tracking branch 'upstream/master' X-Git-Tag: deploy~170 X-Git-Url: https://git.openstreetmap.org/nominatim.git/commitdiff_plain/616789bbccd4b35cc643b20c5af3c9835eb22643?hp=-c Merge remote-tracking branch 'upstream/master' --- 616789bbccd4b35cc643b20c5af3c9835eb22643 diff --combined CMakeLists.txt index 33b6ae64,fa92dd02..a2a98455 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@@ -109,46 -109,10 +109,31 @@@ if (BUILD_IMPORTER " wget -O ${PROJECT_SOURCE_DIR}/data/country_osm_grid.sql.gz https://www.nominatim.org/data/country_grid.sql.gz") endif() - set(CUSTOMSCRIPTS - check_import_finished.php - country_languages.php - export.php - query.php - setup.php - update.php - warm.php - ) - - foreach (script_source ${CUSTOMSCRIPTS}) - configure_file(${PROJECT_SOURCE_DIR}/cmake/script.tmpl - ${PROJECT_BINARY_DIR}/utils/${script_source}) - endforeach() - configure_file(${PROJECT_SOURCE_DIR}/cmake/tool.tmpl ${PROJECT_BINARY_DIR}/nominatim) endif() +#----------------------------------------------------------------------------- +# Targets for running a development webserver from the build directory. +#----------------------------------------------------------------------------- + +if (BUILD_API) + set(WEBSITEFILES + 403.html + 509.html + crossdomain.xml + favicon.ico + nominatim.xml + robots.txt + taginfo.json + ) + + foreach (webfile ${WEBSITEFILES}) + configure_file(${PROJECT_SOURCE_DIR}/website/${webfile} + ${PROJECT_BINARY_DIR}/website/${webfile}) + endforeach() +endif() + #----------------------------------------------------------------------------- # Tests #-----------------------------------------------------------------------------