From 9f1d7015cf326cf72febefc798f8f95eeaf76ff0 Mon Sep 17 00:00:00 2001 From: Johann Klähn Date: Tue, 9 Sep 2014 20:51:50 +0200 Subject: install man page even if BUILD_DOCS isn't set The man page is useful and does not need additional software to be installed. --- doc/CMakeLists.txt | 22 +++++++++------------- 1 file changed, 9 insertions(+), 13 deletions(-) (limited to 'doc/CMakeLists.txt') diff --git a/doc/CMakeLists.txt b/doc/CMakeLists.txt index 9bf1bffe..3b96392a 100644 --- a/doc/CMakeLists.txt +++ b/doc/CMakeLists.txt @@ -27,22 +27,18 @@ endif() ######################################################################## -if (NOT BUILD_DOCS) - add_custom_target(doc DEPENDS doc.doxygen) - return() +if (BUILD_DOCS) + find_program(MAKEINFO makeinfo) + find_program(TEXI2PDF texi2pdf) + find_program(TEX tex) + find_program(MAN2HTML man2html) + find_program(GROFF groff) + set(ledger_info_files ledger3.texi ledger-mode.texi) endif() -set(info_files ledger3.texi ledger-mode.texi) - -find_program(MAKEINFO makeinfo) -find_program(TEXI2PDF texi2pdf) -find_program(TEX tex) -find_program(MAN2HTML man2html) -find_program(GROFF groff) - ######################################################################## -foreach(file ${info_files}) +foreach(file ${ledger_info_files}) get_filename_component(file_base ${file} NAME_WE) if (NOT MAKEINFO) @@ -117,7 +113,7 @@ if (CMAKE_INSTALL_MANDIR) DESTINATION ${CMAKE_INSTALL_MANDIR}/man1 COMPONENT doc) endif(CMAKE_INSTALL_MANDIR) -foreach(file ${info_files}) +foreach(file ${ledger_info_files}) get_filename_component(file_base ${file} NAME_WE) if (CMAKE_SOURCE_DIR STREQUAL BUILD_DIR) -- cgit v1.2.3