diff options
author | Johann Klähn <kljohann@gmail.com> | 2014-09-09 20:51:50 +0200 |
---|---|---|
committer | Johann Klähn <kljohann@gmail.com> | 2014-09-10 00:40:36 +0200 |
commit | 9f1d7015cf326cf72febefc798f8f95eeaf76ff0 (patch) | |
tree | 02a9bca18d1812ca9fd0a70efd0a99e15597d768 /doc/CMakeLists.txt | |
parent | 5931a9377795ecc7d48f11c4d5dbebc158f1b00e (diff) | |
download | fork-ledger-9f1d7015cf326cf72febefc798f8f95eeaf76ff0.tar.gz fork-ledger-9f1d7015cf326cf72febefc798f8f95eeaf76ff0.tar.bz2 fork-ledger-9f1d7015cf326cf72febefc798f8f95eeaf76ff0.zip |
install man page even if BUILD_DOCS isn't set
The man page is useful and does not need additional software to be installed.
Diffstat (limited to 'doc/CMakeLists.txt')
-rw-r--r-- | doc/CMakeLists.txt | 22 |
1 files changed, 9 insertions, 13 deletions
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) |