]> git.openstreetmap.org Git - nominatim.git/blobdiff - CMakeLists.txt
Merge pull request #2087 from lonvia/only-one-link-per-node
[nominatim.git] / CMakeLists.txt
index facd3f30bb692a82ed29283d65514e160ba12a83..cb1373419987d4f79e228f935857b3438ab9b860 100644 (file)
@@ -121,7 +121,6 @@ if (BUILD_API)
    set(WEBSITESCRIPTS
        website/deletable.php
        website/details.php
-       website/hierarchy.php
        website/lookup.php
        website/polygons.php
        website/reverse.php
@@ -141,6 +140,16 @@ if (BUILD_API)
            COMMAND ln -sf ${PROJECT_SOURCE_DIR}/website/${wp} ${PROJECT_BINARY_DIR}/website/
        )
    endforeach()
+
+   add_custom_target(serve
+           php -S 127.0.0.1:8088
+           WORKING_DIRECTORY ${PROJECT_BINARY_DIR}/website
+   )
+
+   add_custom_target(serve-global
+           php -S 0.0.0.0:8088
+           WORKING_DIRECTORY ${PROJECT_BINARY_DIR}/website
+   )
 endif()
 
 #-----------------------------------------------------------------------------