From b8790438e9de4561af59c3408e1a6634073e0a35 Mon Sep 17 00:00:00 2001 From: wolf Date: Wed, 17 Mar 2004 16:04:06 +0000 Subject: [PATCH] Hm, the previous version didn't work (again). This one should. git-svn-id: https://svn.dealii.org/trunk@8810 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/examples/step-17/Makefile | 31 ++++++++++++++++++++----------- 1 file changed, 20 insertions(+), 11 deletions(-) diff --git a/deal.II/examples/step-17/Makefile b/deal.II/examples/step-17/Makefile index edd2f61d63..719c998ab0 100644 --- a/deal.II/examples/step-17/Makefile +++ b/deal.II/examples/step-17/Makefile @@ -1,16 +1,5 @@ # $Id$ -################################################################ -# 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: -endif -# -################################################################ - - # For the small projects Makefile, you basically need to fill in only # four fields. @@ -56,6 +45,25 @@ clean-up-files = *gmv *gnuplot *gpl *eps *pov # settings 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: + @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 @@ -160,3 +168,4 @@ Makefile.dep: $(target).cc Makefile \ include Makefile.dep +endif # CONTRIB_USE_PETSC -- 2.39.5