man-page: Fix install dir
`avrdude.1` is installed into `man` dir instead of its proper section location. This is due to the definition of `TYPE MAN` which points to `<DATAROOT>/man` according to cmake docs. Use `DESTINATION` and add proper section subdir. This allows for `man -M <YOUR INSTALL dir>/share/man -w 1 avrdude` to succeed instead of throwing `No manual entry for avrdude in section 1` Signed-off-by: brutzzl3r <s3b.gr0ss@gmail.com>
This commit is contained in:
parent
346de71cd5
commit
266eb23207
|
@ -273,4 +273,6 @@ install(TARGETS libavrdude
|
|||
PUBLIC_HEADER DESTINATION include COMPONENT dev
|
||||
)
|
||||
install(FILES "${CMAKE_CURRENT_BINARY_DIR}/avrdude.conf" TYPE SYSCONF)
|
||||
install(FILES avrdude.1 TYPE MAN)
|
||||
install(FILES "avrdude.1"
|
||||
DESTINATION "${CMAKE_INSTALL_MANDIR}/man1"
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue