From 99c3435640bf2db9056301c089b80e66c598aed2 Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Tue, 20 Dec 2005 23:46:43 +0000 Subject: [PATCH] Only compile if PETSc is enabled. git-svn-id: https://svn.dealii.org/trunk@11903 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/examples/step-21/Makefile | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/deal.II/examples/step-21/Makefile b/deal.II/examples/step-21/Makefile index 5cecab44d4..f807c0589d 100644 --- a/deal.II/examples/step-21/Makefile +++ b/deal.II/examples/step-21/Makefile @@ -46,6 +46,22 @@ clean-up-files = *gmv *gnuplot *gpl *eps *pov include $D/common/Make.global_options +################################################################ +# This example program will only work if PETSc is installed. If this +# is not the case, then simply redefine the main targets to to nothing +ifneq ($(USE_CONTRIB_PETSC),yes) +default run clean: + @echo + @echo "===========================================================" + @echo "= This program cannot be compiled without PETSc. Make =" + @echo "= sure you have PETSc 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 # libraries which we want to link to the object file, and there need @@ -152,3 +168,4 @@ Makefile.dep: $(target).cc Makefile \ include Makefile.dep +endif # CONTRIB_USE_PETSC -- 2.39.5