diff options
author | Ralf Habacker <ralf.habacker@freenet.de> | 2019-01-25 18:42:16 +0100 |
---|---|---|
committer | Ralf Habacker <ralf.habacker@freenet.de> | 2019-03-13 10:49:54 +0100 |
commit | e840edec094ee80d2ca4a0f7e77bed039a3a1d55 (patch) | |
tree | aae7668dba9648c40b50bda4d7b47a1d4f1aa062 /doc | |
parent | 89847f70426a44cfb236416110457a375ac377a3 (diff) | |
download | dbus-e840edec094ee80d2ca4a0f7e77bed039a3a1d55.tar.gz |
Add target devhelp2 only when xsltproc has been found
It doesn't make sense to add a make target if it can't be created.
Diffstat (limited to 'doc')
-rw-r--r-- | doc/CMakeLists.txt | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/doc/CMakeLists.txt b/doc/CMakeLists.txt index 6c29ba45..399e5313 100644 --- a/doc/CMakeLists.txt +++ b/doc/CMakeLists.txt @@ -29,10 +29,6 @@ if(DBUS_ENABLE_DOXYGEN_DOCS) WORKING_DIRECTORY ${CMAKE_BINARY_DIR} ) add_dependencies(doc apidoc) - add_custom_target(devhelp2 - DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/api/html/index.html ${CMAKE_CURRENT_BINARY_DIR}/dbus.devhelp2 - ) - add_dependencies(doc devhelp2) install(DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/api/html/ DESTINATION ${CMAKE_INSTALL_DATADIR}/doc/dbus/api) endif() @@ -49,6 +45,10 @@ if(DBUS_HAVE_XSLTPROC) DEPENDS doxygen_to_devhelp.xsl api/html/index.html WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} ) + add_custom_target(devhelp2 + DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/api/html/index.html ${CMAKE_CURRENT_BINARY_DIR}/dbus.devhelp2 + ) + add_dependencies(doc devhelp2) install(FILES ${CMAKE_CURRENT_BINARY_DIR}/dbus.devhelp2 DESTINATION ${CMAKE_INSTALL_DATADIR}/doc/dbus) endif() |