summaryrefslogtreecommitdiffstats
path: root/man/CMakeLists.txt
blob: 599ee96671396d5843333a1171ee0059aa685d24 (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_SOURCE_DIR}/man3 )

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

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