@if grep 'define HAVE_LIBLAPACK' $D/base/include/base/config.h ; then \
cd lapack ; $(MAKE) ; cd .. ; \
fi
+ @if grep -q 'define DEAL_II_USE_PETSC' $D/base/include/base/config.h ; then \
+ echo =======Report: petsc ======= ; \
+ cd petsc ; $(MAKE) ; cd .. ; \
+ fi
base:
cd base ; $(MAKE)
echo =======Report: lapack ======= ; \
cd lapack ; $(MAKE) report ; cd .. ; \
fi
+ @if grep -q 'define DEAL_II_USE_PETSC' $D/base/include/base/config.h ; then \
+ echo =======Report: petsc ======= ; \
+ cd petsc ; $(MAKE) report ; cd .. ; \
+ fi
report+mail:
@for i in base lac fe deal.II multigrid bits hp all-headers ; do \
echo =======Report: $$i ======= ; \
cd $$i ; $(MAKE) report+mail ; cd .. ; \
done
- @if grep 'define HAVE_LIBLAPACK' $D/base/include/base/config.h ; then \
+ @if grep -q 'define HAVE_LIBLAPACK' $D/base/include/base/config.h ; then \
echo =======Report: lapack ======= ; \
cd lapack ; $(MAKE) report+mail ; cd .. ; \
fi
-
+ @if grep -q 'define DEAL_II_USE_PETSC' $D/base/include/base/config.h ; then \
+ echo =======Report: petsc ======= ; \
+ cd petsc ; $(MAKE) report+mail ; cd .. ; \
+ fi
# compilation of tests only, no execution of tests
@if grep 'define HAVE_LIBLAPACK' $D/base/include/base/config.h ; then \
cd lapack ; $(MAKE) build ; cd .. ; \
fi
+ @if grep -q 'define DEAL_II_USE_PETSC' $D/base/include/base/config.h ; then \
+ echo =======Report: petsc ======= ; \
+ cd petsc ; $(MAKE) build ; cd .. ; \
+ fi
build-base:
cd base ; $(MAKE) build
@if grep 'define HAVE_LIBLAPACK' $D/base/include/base/config.h ; then \
cd lapack ; $(MAKE) output ; cd .. ; \
fi
+ @if grep -q 'define DEAL_II_USE_PETSC' $D/base/include/base/config.h ; then \
+ echo =======Report: petsc ======= ; \
+ cd petsc ; $(MAKE) output ; cd .. ; \
+ fi
output-base:
cd base ; $(MAKE) output
@if grep 'define HAVE_LIBLAPACK' $D/base/include/base/config.h ; then \
cd lapack ; $(MAKE) refs ; cd .. ; \
fi
+ @if grep -q 'define DEAL_II_USE_PETSC' $D/base/include/base/config.h ; then \
+ echo =======Report: petsc ======= ; \
+ cd petsc ; $(MAKE) refs ; cd .. ; \
+ fi
refs-base:
cd base ; $(MAKE) refs
resultname:
@echo $(TARGET)+$(GXX-VERSION)
-clean: clean-base clean-lac clean-deal.II clean-fe clean-bits clean-hp clean-lapack
+clean: clean-base clean-lac clean-deal.II clean-fe clean-bits clean-hp clean-lapack clean-petsc
-distclean: distclean-base distclean-lac distclean-deal.II distclean-fe distclean-bits distclean-hp distclean-lapack
+distclean: distclean-base distclean-lac distclean-deal.II distclean-fe distclean-bits distclean-hp distclean-lapack distclean-petsc
clean-base:
cd base ; $(MAKE) clean
distclean-lapack:
cd lapack ; $(MAKE) distclean
+clean-petsc:
+ cd petsc ; $(MAKE) clean
+
+distclean-petsc:
+ cd petsc ; $(MAKE) distclean
+
.PHONY : all base lac fe deal.II multigrid bits \
clean clean-base clean-lac clean-fe \
clean-deal.II clean-multigrid clean-bits clean-hp \
# tests for the hp branch:
# fe_collection_*
-ifeq ($(USE_CONTRIB_PETSC),yes)
- tests_x += petsc_*
-endif
-
ifeq ($(USE_CONTRIB_METIS),yes)
tests_x += metis_*
endif
--- /dev/null
+############################################################
+# $Id$
+# Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005, 2006 by the deal.II authors
+############################################################
+
+############################################################
+# Include general settings for including DEAL libraries
+############################################################
+
+include ../Makefile.paths
+include $D/common/Make.global_options
+debug-mode = on
+
+libraries = $(lib-lac.g) \
+ $(lib-base.g)
+libraries_o = $(lib-lac.o) \
+ $(lib-base.o)
+
+default: run-tests
+
+############################################################
+
+tests_x = petsc*
+
+
+# from above list of regular expressions, generate the real set of
+# tests
+expand = $(shell echo $(addsuffix .cc,$(1)) \
+ | $(PERL) -pi -e 's/\.cc//g;')
+tests = $(call expand,$(tests_x))
+
+############################################################
+
+
+include ../Makefile.rules
+include Makefile.depend
+include Makefile.tests
+
+.PHONY: default
\ No newline at end of file