From d8d2cd4d6ddc13a08b637e357f7788605f4e90d1 Mon Sep 17 00:00:00 2001 From: young Date: Tue, 21 Aug 2012 09:54:15 +0000 Subject: [PATCH] Put Must Have Trillinos failsafe in Makefile. git-svn-id: https://svn.dealii.org/trunk@26047 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/examples/step-41/Makefile | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) 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 -- 2.39.5