diff options
author | Johann Klähn <kljohann@gmail.com> | 2013-01-19 13:22:59 +0100 |
---|---|---|
committer | Johann Klähn <kljohann@gmail.com> | 2013-01-19 13:22:59 +0100 |
commit | 252bc9bcf5bc64f31940302fba386cacadbeb949 (patch) | |
tree | bee893590b80ed660cdef2a164af64ecae79995c /doc/CMakeLists.txt | |
parent | b3b11bed3be9c7a6dcd4a4427eb02fa7d92f34ed (diff) | |
download | fork-ledger-252bc9bcf5bc64f31940302fba386cacadbeb949.tar.gz fork-ledger-252bc9bcf5bc64f31940302fba386cacadbeb949.tar.bz2 fork-ledger-252bc9bcf5bc64f31940302fba386cacadbeb949.zip |
only run doxygen once
To update the documentation run `ninja doxygen` or `make doxygen`.
Diffstat (limited to 'doc/CMakeLists.txt')
-rw-r--r-- | doc/CMakeLists.txt | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/doc/CMakeLists.txt b/doc/CMakeLists.txt index a812d9fe..7154be70 100644 --- a/doc/CMakeLists.txt +++ b/doc/CMakeLists.txt @@ -5,14 +5,22 @@ if (USE_DOXYGEN) endif() configure_file(Doxyfile.in Doxyfile @ONLY) - add_custom_target(doxygen ALL + add_custom_command(OUTPUT html/index.html COMMAND ${DOXYGEN_EXECUTABLE} Doxyfile - SOURCES Doxyfile) + DEPENDS Doxyfile + COMMENT "Building doxygen documentation") + add_custom_target(doxygen + COMMAND ${DOXYGEN_EXECUTABLE} Doxyfile + DEPENDS Doxyfile + COMMENT "Building doxygen documentation") + message("NOTE: Doxygen documentation will be built once. Use target doxygen to update.") + list(APPEND ledger_doc_files html/index.html) endif(USE_DOXYGEN) ######################################################################## if(NOT BUILD_DOCS) + add_custom_target(doc ALL DEPENDS ${ledger_doc_files}) return() endif() |