From a187a714cfdf5e0f83435f7c7b0f2e119ec78247 Mon Sep 17 00:00:00 2001 From: heister Date: Fri, 4 Jan 2013 21:54:31 +0000 Subject: [PATCH] update Makefile for step-50 to disable compilation if Trilinos or p4est is missing git-svn-id: https://svn.dealii.org/trunk@27926 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/examples/step-50/Makefile | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/deal.II/examples/step-50/Makefile b/deal.II/examples/step-50/Makefile index 3af5d515e1..724ba8ac31 100644 --- a/deal.II/examples/step-50/Makefile +++ b/deal.II/examples/step-50/Makefile @@ -44,7 +44,18 @@ clean-up-files = *gmv *gnuplot *gpl *eps *pov *vtk *ucd *.d2 # settings include $D/common/Make.global_options - +ifneq ($(USE_CONTRIB_TRILINOS)$(USE_CONTRIB_P4EST),yesyes) +default run clean: + @echo + @echo "===========================================================" + @echo "= This program can only be run with the following =" + @echo "= configuration: =" + @echo "= - with Trilinos =" + @echo "= - with P4EST =" + @echo "= At least one of these conditions is not satisfied. =" + @echo "===========================================================" + @echo +else # Since the whole project consists of only one file, we need not # consider difficult dependencies. We only have to declare the # libraries which we want to link to the object file. deal.II has two @@ -141,3 +152,4 @@ Makefile.dep: $(target).cc Makefile \ include Makefile.dep +endif # USE_CONTRIB_TRILINOS -- 2.39.5