From 41849152849d0669ec5d78f1b5126bdfb643447e Mon Sep 17 00:00:00 2001 From: young Date: Sun, 2 Oct 2011 16:41:00 +0000 Subject: [PATCH] Stop step-42 from compiling without UMFPACK git-svn-id: https://svn.dealii.org/trunk@24500 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/examples/step-42/Makefile | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/deal.II/examples/step-42/Makefile b/deal.II/examples/step-42/Makefile index e9014c3310..561f5adfeb 100644 --- a/deal.II/examples/step-42/Makefile +++ b/deal.II/examples/step-42/Makefile @@ -45,6 +45,24 @@ 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 UMFPACK is installed. If this +# is not the case, then simply redefine the main targets to do nothing + + +ifneq ($(USE_CONTRIB_UMFPACK),yes) +default run clean: + @echo + @echo "===========================================================" + @echo "= This program cannot be compiled without UMFPACK. Make =" + @echo "= sure you have UMFPACK installed and detected during =" + @echo "= configuration of deal.II =" + @echo "===========================================================" + @echo +endif +# +################################################################ + # Since the whole project consists of only one file, we need not # consider difficult dependencies. We only have to declare the -- 2.39.5