Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Enable manpages on all UNIX and make man path customizable
  • Loading branch information
AMDmi3 committed Dec 6, 2018
1 parent 1cef4ba commit 36871f0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CMakeLists.txt
Expand Up @@ -420,9 +420,9 @@ if(NOT A2X_EXECUTABLE STREQUAL "A2X_EXECUTABLE-NOTFOUND")
DEPENDS resources/${MAN_NAME}.adoc
COMMENT "(Re-)building manpage ${MAN_NAME}"
VERBATIM)
if(${CMAKE_SYSTEM_NAME} MATCHES "Linux")
if(UNIX)
add_custom_target(man ALL DEPENDS resources/${MAN_NAME})
install(FILES resources/${MAN_NAME} DESTINATION share/man/man6)
install(FILES resources/${MAN_NAME} DESTINATION ${CMAKE_INSTALL_MANDIR}/man6)
else()
add_custom_target(man DEPENDS resources/${MAN_NAME})
endif()
Expand Down

0 comments on commit 36871f0

Please sign in to comment.