--- man/CMakeLists.txt.orig 2019-03-25 22:56:31.000000000 -0400 +++ man/CMakeLists.txt 2019-10-30 10:40:52.786377499 -0400 @@ -4,19 +4,15 @@ find_program (GROFF groff) if(GROFF) - set(MANPAGES qbsp vis light bsputil bspinfo) + set(MANPAGES ericw-qbsp ericw-vis ericw-light ericw-bsputil ericw-bspinfo) foreach(MANPAGE ${MANPAGES}) add_custom_command( OUTPUT ${MANPAGE}.html COMMAND ${GROFF} -Thtml -man ${CMAKE_SOURCE_DIR}/man/${MANPAGE}.1 > ${MANPAGE}.html ) add_custom_target(man_${MANPAGE} DEPENDS ${MANPAGE}.html) - install(FILES ${CMAKE_CURRENT_BINARY_DIR}/${MANPAGE}.html DESTINATION doc) + install(FILES ${CMAKE_CURRENT_BINARY_DIR}/${MANPAGE}.html DESTINATION ${CMAKE_INSTALL_DATADIR}/doc) + install(FILES ${MANPAGE}.1 DESTINATION ${CMAKE_INSTALL_MANDIR}/man1) + add_dependencies(${MANPAGE} man_${MANPAGE}) endforeach() - #make each of the main targets depend on the manuals - add_dependencies(qbsp man_qbsp) - add_dependencies(vis man_vis) - add_dependencies(light man_light) - add_dependencies(bsputil man_bsputil) - add_dependencies(bspinfo man_bspinfo) endif(GROFF)