From: Wolfgang Bangerth Date: Tue, 20 Dec 2005 23:46:43 +0000 (+0000) Subject: Only compile if PETSc is enabled. X-Git-Tag: v8.0.0~12752 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=99c3435640bf2db9056301c089b80e66c598aed2;p=dealii.git Only compile if PETSc is enabled. git-svn-id: https://svn.dealii.org/trunk@11903 0785d39b-7218-0410-832d-ea1e28bc413d --- 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