From: bangerth Date: Sat, 1 Mar 2008 21:57:30 +0000 (+0000) Subject: Disable program if trilinos isn't installed. X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3f54b4d5e2717452f06fbbc0e966dde511105d8c;p=dealii-svn.git Disable program if trilinos isn't installed. git-svn-id: https://svn.dealii.org/trunk@15829 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/examples/step-33/Makefile b/deal.II/examples/step-33/Makefile index 2102793621..2f1137b812 100644 --- a/deal.II/examples/step-33/Makefile +++ b/deal.II/examples/step-33/Makefile @@ -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