]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Disable program if trilinos isn't installed.
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Sat, 1 Mar 2008 21:57:30 +0000 (21:57 +0000)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Sat, 1 Mar 2008 21:57:30 +0000 (21:57 +0000)
git-svn-id: https://svn.dealii.org/trunk@15829 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/examples/step-33/Makefile

index 21027936213d3096bcf1ff6bbaffb98379ef818a..2f1137b812faa9a20ec73a5f03695c32eb3232f8 100644 (file)
@@ -1,4 +1,4 @@
-# $Id: Makefile 14008 2006-10-17 04:05:33Z bangerth $
+# $Id: Makefile 11779 2005-11-23 15:54:25Z wolf $
 
 
 # For the small projects Makefile, you basically need to fill in only
@@ -45,6 +45,25 @@ clean-up-files = *gmv *gnuplot *gpl *eps *pov
 # 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 to 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
@@ -152,3 +171,4 @@ Makefile.dep: $(target).cc Makefile \
 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.