]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Hm, the previous version didn't work (again). This one should.
authorwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 17 Mar 2004 16:04:06 +0000 (16:04 +0000)
committerwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 17 Mar 2004 16:04:06 +0000 (16:04 +0000)
git-svn-id: https://svn.dealii.org/trunk@8810 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/examples/step-17/Makefile

index edd2f61d6350cd8c178daf8c51cb9c188916288f..719c998ab0278963bbcb1e74cf172956df96a600 100644 (file)
@@ -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

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.