From: Wolfgang Bangerth <bangerth@math.tamu.edu>
Date: Thu, 24 Sep 2015 15:39:59 +0000 (-0500)
Subject: Minor updates. Ensure proper dependencies.
X-Git-Tag: v8.4.0-rc2~295^2
X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=df1cefbde03acacdee84051024010f4976269326;p=dealii.git

Minor updates. Ensure proper dependencies.
---

diff --git a/doc/doxygen/tutorial/CMakeLists.txt b/doc/doxygen/tutorial/CMakeLists.txt
index 80ba641cc8..fd6a006562 100644
--- a/doc/doxygen/tutorial/CMakeLists.txt
+++ b/doc/doxygen/tutorial/CMakeLists.txt
@@ -1,6 +1,6 @@
 ## ---------------------------------------------------------------------
 ##
-## Copyright (C) 2012 - 2014 by the deal.II Authors
+## Copyright (C) 2012 - 2015 by the deal.II Authors
 ##
 ## This file is part of the deal.II library.
 ##
@@ -15,12 +15,31 @@
 
 
 #
-# Prepare tutorial.h:
+# Define target for the tutorial. It depends on the
+# file tutorial.h built via the next target below, as well
+# as the various files we create from the tutorial 
+# directories below that. These dependencies are added
+# below the respective targets.
+#
+# This file uses the DEAL_II_STEPS variable set in
+# ../CMakeLists.txt.
+#
+
+ADD_CUSTOM_TARGET(tutorial)
+
+#
+# Describe how to build tutorial.h:
 #
 
 file(GLOB DEAL_II_STEPS_BUILDSON
   ${CMAKE_SOURCE_DIR}/examples/step-*/doc/builds-on
   )
+file(GLOB DEAL_II_STEPS_KIND
+  ${CMAKE_SOURCE_DIR}/examples/step-*/doc/kind
+  )
+file(GLOB DEAL_II_STEPS_TOOLTIP
+  ${CMAKE_SOURCE_DIR}/examples/step-*/doc/tooltip
+  )
 
 ADD_CUSTOM_COMMAND(
   OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/tutorial.h
@@ -33,16 +52,14 @@ ADD_CUSTOM_COMMAND(
   DEPENDS
     ${DEAL_II_STEPS}
     ${DEAL_II_STEPS_BUILDSON}
+    ${DEAL_II_STEPS_KIND}
+    ${DEAL_II_STEPS_TOOLTIP}
     ${CMAKE_CURRENT_SOURCE_DIR}/tutorial.h.in
   )
+ADD_CUSTOM_TARGET(build_tutorial_h
+  DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/tutorial.h)
+ADD_DEPENDENCIES(tutorial build_tutorial_h)
 
-#
-# A target for the preparation of all the stuff happening in here...
-#
-
-ADD_CUSTOM_TARGET(tutorial
-  DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/tutorial.h
-  )
 
 #
 # Prepare the steps for documentation generation