doc: Build doc with cmake
Run `make doc` inside the cmake build folder. The html output is installed to ${CMAKE_INSTALL_PREFIX}/share/doc/polybar
This commit is contained in:
parent
7809be8d58
commit
c841bd512c
@ -92,3 +92,15 @@ install(FILES config
|
||||
COMPONENT config)
|
||||
|
||||
# }}}
|
||||
|
||||
# Documentation {{{
|
||||
|
||||
add_custom_target(doc ALL
|
||||
WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}/doc
|
||||
COMMAND make html)
|
||||
|
||||
install(DIRECTORY build/html/
|
||||
DESTINATION share/doc/polybar
|
||||
COMPONENT doc)
|
||||
|
||||
# }}}
|
||||
|
Loading…
Reference in New Issue
Block a user