]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
Build and install HTML documentation by default if possible
authorJoel Rosdahl <joel@rosdahl.net>
Mon, 23 Nov 2020 19:24:03 +0000 (20:24 +0100)
committerJoel Rosdahl <joel@rosdahl.net>
Mon, 23 Nov 2020 19:26:54 +0000 (20:26 +0100)
doc/CMakeLists.txt

index b5c9f24ef0d8c68b93d23d81f21aec45d1f876bc..8f866b8818d79192c00da767deff451bf377e1c3 100644 (file)
@@ -58,7 +58,7 @@ else()
       COMMAND ${A2X_EXE} --doctype manpage --format manpage MANUAL.xml
       MAIN_DEPENDENCY MANUAL.xml
     )
-    add_custom_target(doc-man-page ALL DEPENDS ccache.1)
+    add_custom_target(doc-man-page DEPENDS ccache.1)
     install(
       FILES "${CMAKE_CURRENT_BINARY_DIR}/ccache.1"
       DESTINATION "${CMAKE_INSTALL_MANDIR}/man1"
@@ -66,5 +66,5 @@ else()
     set(doc_files "${doc_files}" ccache.1)
   endif()
 
-  add_custom_target(doc DEPENDS "${doc_files}")
+  add_custom_target(doc ALL DEPENDS "${doc_files}")
 endif()