]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Put Must Have Trillinos failsafe in Makefile.
authoryoung <young@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 21 Aug 2012 09:54:15 +0000 (09:54 +0000)
committeryoung <young@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 21 Aug 2012 09:54:15 +0000 (09:54 +0000)
git-svn-id: https://svn.dealii.org/trunk@26047 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/examples/step-41/Makefile

index 74459bdba84928e839381bacda7dcc75d35192c3..150d91c19f4b9b0a56f4cfa5af2f737415e6df41 100644 (file)
@@ -45,6 +45,22 @@ clean-up-files = *gmv *gnuplot *gpl *eps *pov *vtk *ucd *.d2
 # settings
 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
+#
+################################################################
 
 # Since the whole project consists of only one file, we need not
 # consider difficult dependencies. We only have to declare the
@@ -141,4 +157,4 @@ Makefile.dep: $(target).cc Makefile \
 # them:
 include Makefile.dep
 
-
+endif  # CONTRIB_USE_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.