diff --git a/.gitignore b/.gitignore
index 0a336d856898be9d22abd87251324ca8c8cc15e9..77ba5a6aa3db2679cc4dae90738dd9695a534431 100644
--- a/.gitignore
+++ b/.gitignore
@@ -9,7 +9,6 @@
 /configure
 /depcomp
 /dependencies.m4
-/doc/doxygen/Doxyfile.in
 /install-sh
 /ltmain.sh
 /missing
diff --git a/Makefile.am b/Makefile.am
index 2a4b315425fbb94894a5e85453331220bb9652f1..4eed0f14a14a36659bbf942b61587ea2ae8fd2b7 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -1,16 +1,6 @@
-# $Id$
+EXTRA_DIST = dune.module
 
-# we need the module file to be able to build via dunecontrol
-EXTRA_DIST=dune.module
-
-SUBDIRS = src m4 dune doc
-
-if BUILD_DOCS
-#SUBDIRS += doc
-endif
-
-# pass most important options when "make distcheck" is used
-DISTCHECK_CONFIGURE_FLAGS = --with-dune-common=$(DUNE_COMMON_ROOT) --with-dune-fufem=$(DUNE_FUFEM_ROOT) --with-dune-tnnmg=$(DUNE_TNNMG_ROOT)  CXX="$(CXX)" CC="$(CC)"
+SUBDIRS = src m4 dune
 
 include $(top_srcdir)/am/top-rules
 include $(top_srcdir)/am/global-rules
diff --git a/configure.ac b/configure.ac
index 308e2748b9be9890789be6d4cda5f7954e301cb0..30bd4d5d1e623c84dc2ffa8e05d1ebd135155639 100644
--- a/configure.ac
+++ b/configure.ac
@@ -7,24 +7,12 @@ AM_SILENT_RULES
 AC_CONFIG_SRCDIR([src/one-body-sample.cc])
 AC_CONFIG_HEADERS([config.h])
 
-
-# we need no more than the standard DE-stuff
-# this module depends on dune-common dune-fufem dune-tnnmg
-# this implies checking for [dune-common], [dune-grid], [dune-istl], [dune-localfunctions], [dune-fufem], [dune-solvers], [dune-tnnmg]
 DUNE_CHECK_ALL
 
-# implicitly set the Dune-flags everywhere
-AC_SUBST(AM_CPPFLAGS, $DUNE_CPPFLAGS)
-AC_SUBST(AM_LDFLAGS, $DUNE_LDFLAGS)
-LIBS="$DUNE_LIBS"
-
 AC_CONFIG_FILES([
   Makefile
   src/Makefile
   src/tests/Makefile
-  doc/Makefile
-  doc/doxygen/Makefile
-  doc/doxygen/Doxyfile
   dune/Makefile
   dune/tectonic/Makefile
   m4/Makefile
diff --git a/doc/Makefile.am b/doc/Makefile.am
deleted file mode 100644
index f9314497bb309468765507b33de4e34233e7ab9c..0000000000000000000000000000000000000000
--- a/doc/Makefile.am
+++ /dev/null
@@ -1,12 +0,0 @@
-
-SUBDIRS = doxygen
-CURDIR = doc
-BASEDIR = ..
-
-# add list of html files to generate from wml
-PAGES=
-
-docdir=$(datadir)/doc/dune-tectonic
-
-include $(top_srcdir)/am/webstuff
-include $(top_srcdir)/am/global-rules
diff --git a/doc/doxygen/Doxylocal b/doc/doxygen/Doxylocal
deleted file mode 100644
index e16f3eda2e2f8a0ca57bc128fe1e92e759e2eb5d..0000000000000000000000000000000000000000
--- a/doc/doxygen/Doxylocal
+++ /dev/null
@@ -1,30 +0,0 @@
-# This file contains local changes to the doxygen configuration
-# please us '+=' to add file/directories to the lists
-
-# The INPUT tag can be used to specify the files and/or directories that contain
-# documented source files. You may enter file names like "myfile.cpp" or
-# directories like "/usr/src/myproject". Separate the files or directories
-# with spaces.
-
-INPUT                 += @top_srcdir@/dune/
-# see e.g. dune-grid for the examples of mainpage and modules
-# INPUT                 += @srcdir@/mainpage #                          @srcdir@/modules
-
-# The EXCLUDE tag can be used to specify files and/or directories that should
-# excluded from the INPUT source files. This way you can easily exclude a
-# subdirectory from a directory tree whose root is specified with the INPUT tag.
-
-# EXCLUDE               += @top_srcdir@/dune/tectonic/test
-
-# The EXAMPLE_PATH tag can be used to specify one or more files or
-# directories that contain example code fragments that are included (see
-# the \include command).
-
-# EXAMPLE_PATH          += @top_srcdir@/src
-
-# The IMAGE_PATH tag can be used to specify one or more files or
-# directories that contain image that are included in the documentation (see
-# the \image command).
-
-# IMAGE_PATH            += @top_srcdir@/dune/tectonic/pics
-
diff --git a/doc/doxygen/Makefile.am b/doc/doxygen/Makefile.am
deleted file mode 100644
index d94c751b4a1ba391b553822f67bcb7ea32621f90..0000000000000000000000000000000000000000
--- a/doc/doxygen/Makefile.am
+++ /dev/null
@@ -1,7 +0,0 @@
-
-BASEDIR=../..
-CURDIR=doc/doxygen
-
-include $(top_srcdir)/am/doxygen
-include $(top_srcdir)/am/global-rules
-
diff --git a/src/tests/Makefile.am b/src/tests/Makefile.am
index 90342183a16bb783eac10d3f6fc34627dd79be0d..899cb29bd26eb332c81ff85487f40ca1d62d7902 100644
--- a/src/tests/Makefile.am
+++ b/src/tests/Makefile.am
@@ -37,8 +37,30 @@ test_minimise2_SOURCES                     = test-minimise2.cc
 
 TESTS = $(check_PROGRAMS)
 
+AM_CXXFLAGS = \
+	-Wall \
+	-Wextra \
+	-Wno-c++11-compat \
+	-Wno-c++11-extensions \
+	-Wno-deprecated-declarations \
+	-Wno-mismatched-tags \
+	-Wno-missing-declarations \
+	-Wno-overloaded-virtual \
+	-Wno-reorder \
+	-Wno-sign-compare \
+	-Wno-tautological-compare \
+	-Wno-type-limits \
+	-Wno-unused-parameter \
+	-Wno-unused-variable
+
 AM_CPPFLAGS = \
+	-DDUNE_FMatrix_WITH_CHECKING \
 	$(DUNE_CPPFLAGS) \
-	$(PYTHON_CPPFLAGS) \
-	$(ALUGRID_CPPFLAGS) \
 	-I$(top_srcdir)
+
+# The libraries have to be given in reverse order (most basic libraries
+# last).
+LDADD = \
+	$(DUNE_LDFLAGS) $(DUNE_LIBS)
+AM_LDFLAGS = \
+	$(DUNE_LDFLAGS)