message("")
message(STATUS "${BoldGreen}Starting configuring of the mineXpert user manual documentation${ColourReset}")
message("")

# The minexpert user documentation.
if(UNIX AND NOT APPLE)

	# Command:
	# make minexpert-doc
	# Makes use of the local  Makefile file.
	# Will generate HTML and PDF documentation in the build directory
	add_custom_target(minexpert-doc ALL
		COMMAND make all
		WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
		COMMENT "DocBook-based user manual documentation for mineXpert")

endif(UNIX AND NOT APPLE)

install(FILES
	${CMAKE_CURRENT_SOURCE_DIR}/build/minexpert-user-manual/minexpert-doc.pdf
	DESTINATION ${MINEXPERT_DOC_DIR})

install(DIRECTORY 
	${CMAKE_CURRENT_SOURCE_DIR}/build/minexpert-user-manual/html/minexpert-user-manual/
	DESTINATION ${MINEXPERT_DOC_DIR}/html)

message("")
message(STATUS "${BoldGreen}Finished configuring of the mineXpert user manual documentation${ColourReset}")
message("")
