summaryrefslogtreecommitdiffstats
path: root/man/CMakeLists.txt
blob: eb94a2be8c8ece3ce2106ddfd73199f65ff46a7f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#################################################
#
#  (C) 2014 Slávek Banko
#  slavek (DOT) banko (AT) axis.cz
#
#  Improvements and feedback are welcome
#
#  This file is released under GPL >= 2
#
#################################################


add_custom_target( man ALL DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/man3 )

add_custom_command(
  OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/man3
  COMMAND doxygen ${CMAKE_BINARY_DIR}/doc/libr.cfg
  WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
  COMMENT "Generate manpages"
)

install(
  DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/man3
  DESTINATION ${MAN_INSTALL_DIR}
  PATTERN "_*" EXCLUDE
)