mirror of
https://gitlab.freedesktop.org/dbus/dbus.git
synced 2026-02-14 14:30:37 +01:00
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.
This commit is contained in:
parent
89847f7042
commit
e840edec09
1 changed files with 4 additions and 4 deletions
|
|
@ -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()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue