mirror of
https://github.com/mhx/dwarfs.git
synced 2025-08-03 17:56:12 -04:00
build: only install selected manpages
This commit is contained in:
parent
d205fed4e9
commit
e09d63ffe8
@ -62,11 +62,11 @@ function(add_manpage MANPAGE)
|
||||
endif()
|
||||
|
||||
if(_man_dir)
|
||||
install(FILES "${_man_dir}/${MANPAGE}" DESTINATION share/man/man${_section})
|
||||
get_target_property(_man_dirs manpages MANPAGE_DIRECTORIES)
|
||||
list(FIND _man_dirs "${_man_dir}" _index)
|
||||
if(${_index} EQUAL -1)
|
||||
list(APPEND _man_dirs "${_man_dir}")
|
||||
install(DIRECTORY "${_man_dir}" DESTINATION share/man)
|
||||
set_target_properties(manpages PROPERTIES MANPAGE_DIRECTORIES "${_man_dirs}")
|
||||
endif()
|
||||
endif()
|
||||
|
Loading…
x
Reference in New Issue
Block a user