]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Only compile if PETSc is enabled.
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Tue, 20 Dec 2005 23:46:43 +0000 (23:46 +0000)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Tue, 20 Dec 2005 23:46:43 +0000 (23:46 +0000)
git-svn-id: https://svn.dealii.org/trunk@11903 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/examples/step-21/Makefile

index 5cecab44d4351ffa1ed4b96339d2f4fb1a32234b..f807c0589d7472c9babcab32f9f64589bad95350 100644 (file)
@@ -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

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.