A prefix has been added to the custom target names in docbook-related
macros to fix the reported error:
ninja: error: build.ninja:xxx: multiple rules generate
doc/dbus-xxx.1.html [-w dupbuild=err]
Fixes #377
Signed-off-by: Ralf Habacker <ralf.habacker@freenet.de>
DEPENDS ${srcfile} ${CMAKE_BINARY_DIR}/CMakeCache.txt
COMMENT "Generating ${outname}"
)
- add_custom_target(${outname} DEPENDS ${_outfile})
+ add_custom_target(xmldoc-${outname} DEPENDS ${_outfile})
endmacro()
#
DEPENDS ${XSLTPROC_EXECUTABLE} ${_infile}
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
)
- add_custom_target(${_outname} DEPENDS ${_outfile})
- add_dependencies(xmldoc ${_outname})
+ add_custom_target(xmldoc-${_outname} DEPENDS ${_outfile})
+ add_dependencies(xmldoc xmldoc-${_outname})
install(FILES ${_outfile} DESTINATION ${INSTALL_DIR})
endforeach()
endmacro()