From: Toby D. Young Date: Tue, 21 Aug 2012 09:54:15 +0000 (+0000) Subject: Put Must Have Trillinos failsafe in Makefile. X-Git-Tag: v8.0.0~2279 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a61ce68f4851c9f4d965b95a070b7ecdd3ec0c46;p=dealii.git Put Must Have Trillinos failsafe in Makefile. git-svn-id: https://svn.dealii.org/trunk@26047 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/examples/step-41/Makefile b/deal.II/examples/step-41/Makefile index 74459bdba8..150d91c19f 100644 --- a/deal.II/examples/step-41/Makefile +++ b/deal.II/examples/step-41/Makefile @@ -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