From 92b3c2dcff3e85ad3d455f6ab845d9a97d3b525b Mon Sep 17 00:00:00 2001 From: Aqua-sama Date: Mon, 7 Dec 2020 12:22:15 +0200 Subject: Rewrite meson build scripts into cmakelists --- doc/man/CMakeLists.txt | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 doc/man/CMakeLists.txt (limited to 'doc/man') diff --git a/doc/man/CMakeLists.txt b/doc/man/CMakeLists.txt new file mode 100644 index 0000000..309ff7c --- /dev/null +++ b/doc/man/CMakeLists.txt @@ -0,0 +1,9 @@ +set(MANPAGES smolbote.1;smolbote-profile.5;smolboterc.5) + +find_program(SCDOC scdoc) +foreach(F ${MANPAGES}) + add_custom_command(OUTPUT ${F} COMMAND ${SCDOC} < ${CMAKE_CURRENT_SOURCE_DIR}/${F}.scd > ${F} VERBATIM) +endforeach() + +add_custom_target(man DEPENDS ${MANPAGES}) +install(FILES smolbote.1 DESTINATION /usr/local/man) -- cgit v1.2.1