diff --git a/Makefile.am b/Makefile.am
index dada376..5cafc50 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -17,6 +17,8 @@
# Top-Level Makefile for building ImageMagick.
#
+topincludedir = @includedir@/MagickCore
+
AM_CPPFLAGS = -I$(top_builddir) -I$(top_srcdir)
ACLOCAL_AMFLAGS = -I m4
@@ -24,8 +26,6 @@
MODULECOMMONFLAGS = -no-undefined -export-symbols-regex ".*" -shared -module -avoid-version
MODULECOMMONCPPFLAGS = $(AM_CPPFLAGS)
-SUBDIRS = .
-
# Options to pass when running configure in the distcheck target.
#
# We want to preserve user-provided option variables so the same