From 4596756f6f0001c3b7420ec7cdf5789bb726b4ad Mon Sep 17 00:00:00 2001 From: Gerhard Sittig Date: Sun, 14 Oct 2018 17:10:04 +0200 Subject: [PATCH 1/1] manual: cosmetic nits, add comments to CMake rules --- manual/CMakeLists.txt | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/manual/CMakeLists.txt b/manual/CMakeLists.txt index 25a26e9..17bf487 100644 --- a/manual/CMakeLists.txt +++ b/manual/CMakeLists.txt @@ -17,15 +17,22 @@ ## along with this program. If not, see . ## +# External dependencies, required and optional tools. find_program(ASCIIDOCTOR_EXECUTABLE NAMES asciidoctor) find_program(ASCIIDOCTOR_PDF_EXECUTABLE NAMES asciidoctor-pdf) +# Tunables. set(STYLES_DIR "asciidoctor-stylesheet-factory/stylesheets") set(STYLE_SHEET "readthedocs.css") + +# Input files. set(MANUAL_SRC "${CMAKE_CURRENT_SOURCE_DIR}/pulseview_manual.txt") + +# Output files, conversion results. set(MANUAL_OUT_HTML "${CMAKE_CURRENT_BINARY_DIR}/pulseview_manual.html") set(MANUAL_OUT_PDF "${CMAKE_CURRENT_BINARY_DIR}/pulseview_manual.pdf") +# Manual related make(1) targets. add_custom_target(manual-html COMMAND ${ASCIIDOCTOR_EXECUTABLE} -a stylesheet=${STYLE_SHEET} -- 2.30.2