]> https://gitweb.dealii.org/ - dealii.git/commitdiff
step-41: require Trilinos in the makefile to make build-test pass without Trilinos.
authorTimo Heister <timo.heister@gmail.com>
Thu, 2 Sep 2010 11:16:55 +0000 (11:16 +0000)
committerTimo Heister <timo.heister@gmail.com>
Thu, 2 Sep 2010 11:16:55 +0000 (11:16 +0000)
git-svn-id: https://svn.dealii.org/trunk@21835 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/examples/step-41/Makefile

index 7fb1643e79061af4fec083da06bf394b3603d36f..32ffe9d10069773c63885ad7424adcdab96d9458 100644 (file)
@@ -32,8 +32,6 @@ run-parameters  = parameter-file.prm
 # the deal.II toplevel directory:
 D = ../../
 
-
-
 #
 #
 # Usually, you will not need to change anything beyond this point.
@@ -43,6 +41,24 @@ D = ../../
 include $D/common/Make.global_options
 
 
+################################################################ 
+# This example program will only work if Trilinos is installed. If this
+# is not the case, then simply redefine the main targets to do nothing
+ifneq ($(USE_CONTRIB_TRILINOS),yes)
+default run clean:
+        @echo
+        @echo "===========================================================" 
+        @echo "=   This program cannot be compiled without Trilinos. Make="
+        @echo "=   sure you have Trilinos installed and detected during  ="
+        @echo "=   configuration of deal.II                              ="
+        @echo "==========================================================="
+        @echo
+
+else
+#
+################################################################
+
+
 # First get a list of files belonging to the project. Include files
 # are expected in `include/', while implementation files are expected
 # in `source/'. Object files are placed into `lib/[123]d', using the
@@ -134,3 +150,4 @@ lib/Makefile.dep: $(cc-files) $(h-files) $(lib-h-files) Makefile
 
 include lib/Makefile.dep
 
+endif  # USE_CONTRIB_TRILINOS

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.