diff --git a/doc/CMakeLists.txt b/doc/CMakeLists.txt
index 8773e58b4d49fe14e08a8a1a4b4d6904ecbfe33d..367db9f4a1c43a0cb38ae8f6384591978d4210d5 100644
--- a/doc/CMakeLists.txt
+++ b/doc/CMakeLists.txt
@@ -1,2 +1,5 @@
 add_subdirectory(user)
 add_subdirectory(developer)
+
+add_custom_target(www-data ALL
+    COMMAND rm -rf www-data && mkdir www-data && ../scripts/static.py --source-path www-data.in --output-path www-data)