From 252bc9bcf5bc64f31940302fba386cacadbeb949 Mon Sep 17 00:00:00 2001 From: Johann Klähn Date: Sat, 19 Jan 2013 13:22:59 +0100 Subject: only run doxygen once To update the documentation run `ninja doxygen` or `make doxygen`. --- doc/CMakeLists.txt | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'doc/CMakeLists.txt') 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() -- cgit v1.2.3