From 3a096e41542ec3eed645b20a50caf13c71f572ad Mon Sep 17 00:00:00 2001 From: Timo Heister Date: Thu, 2 Sep 2010 11:16:55 +0000 Subject: [PATCH] step-41: require Trilinos in the makefile to make build-test pass without Trilinos. git-svn-id: https://svn.dealii.org/trunk@21835 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/examples/step-41/Makefile | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/deal.II/examples/step-41/Makefile b/deal.II/examples/step-41/Makefile index 7fb1643e79..32ffe9d100 100644 --- a/deal.II/examples/step-41/Makefile +++ b/deal.II/examples/step-41/Makefile @@ -32,8 +32,6 @@ run-parameters = parameter-file.prm # the deal.II toplevel directory: D = ../../ - - # # # Usually, you will not need to change anything beyond this point. @@ -43,6 +41,24 @@ D = ../../ 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 +# +################################################################ + + # First get a list of files belonging to the project. Include files # are expected in `include/', while implementation files are expected # in `source/'. Object files are placed into `lib/[123]d', using the @@ -134,3 +150,4 @@ lib/Makefile.dep: $(cc-files) $(h-files) $(lib-h-files) Makefile include lib/Makefile.dep +endif # USE_CONTRIB_TRILINOS -- 2.39.5