diff --git a/doc/CMakeLists.txt b/doc/CMakeLists.txt
index 8a2feabf7afc0c344ed018d247834fa0310442e7..856f1a6a1ab17e1aa3fd6a3ae7dc79f2c7745fd5 100644
--- a/doc/CMakeLists.txt
+++ b/doc/CMakeLists.txt
@@ -16,4 +16,4 @@ if (ENABLE_DOC)
 endif()
 
 
-add_subdirectory(www-data.in EXCLUDE_FROM_ALL)
+add_subdirectory(www-data.in)
diff --git a/doc/www-data.in/CMakeLists.txt b/doc/www-data.in/CMakeLists.txt
index 63220942a5421681af2923b44add51e00e650152..4c615ae2a39dccefecf8ce286d53f34092a169d3 100644
--- a/doc/www-data.in/CMakeLists.txt
+++ b/doc/www-data.in/CMakeLists.txt
@@ -1,2 +1,2 @@
 add_custom_target(www-data ALL
-    COMMAND ${PROJECT_SOURCE_DIR}/extra/site.py)
+    COMMAND ${PROJECT_SOURCE_DIR}/extra/static.py)