--- a/cpp/Makefile
+++ b/cpp/Makefile
@@ -11,10 +11,10 @@
 
 include $(top_srcdir)/config/Make.rules
 
-SUBDIRS		= config src include test
+SUBDIRS		= config src include
 
 ifeq ($(shell uname | grep MINGW),)
-SUBDIRS		:= $(SUBDIRS) demo
+SUBDIRS		:= $(SUBDIRS)
 endif
 
 INSTALL_SUBDIRS	= $(install_bindir) $(install_libdir) $(install_includedir) \
--- a/cs/Makefile
+++ b/cs/Makefile
@@ -11,7 +11,7 @@
 
 include $(top_srcdir)/config/Make.rules.cs
 
-SUBDIRS		= src test demo
+SUBDIRS		= src
 
 INSTALL_SUBDIRS	= $(install_bindir) $(install_assembliesdir) $(install_mandir)
 
--- a/cpp/config/Make.rules
+++ b/cpp/config/Make.rules
@@ -34,7 +34,7 @@
 
 #
 # Define LP64 as yes or no if you want force a 32 or 64 bit. The
-# default is platform-dependent. This property has no effect on 
+# default is platform-dependent. This property has no effect on
 # OS X. On OS X, use CXXARCHFLAGS bellow to establish the build
 # architectures.
 #
@@ -65,7 +65,7 @@
 # If you combine Ice with more GPL-incompatible software, or have
 # licensed Ice under a commercial (non-GPL) license, you should ponder
 # the licensing implications of using readline.
-# 
+#
 USE_READLINE		?= no
 
 #
@@ -96,13 +96,13 @@
 #OPENSSL_HOME		?= /opt/openssl
 
 #
-# If MCPP is not installed in a standard location where the compiler 
+# If MCPP is not installed in a standard location where the compiler
 # can find it, set MCPP_HOME to the Mcpp installation directory.
 #
 #MCPP_HOME		?= /opt/mcpp
 
 #
-# If libiconv is not installed in a standard location where the compiler 
+# If libiconv is not installed in a standard location where the compiler
 # can find it, set ICONV_HOME to the libiconv installation directory.
 #
 #ICONV_HOME		?= /opt/libiconv
@@ -115,7 +115,7 @@
 #READLINE_HOME		?= /opt/readline
 
 #
-# If you want to build the deprecated SQL database plugins for IceStorm 
+# If you want to build the deprecated SQL database plugins for IceStorm
 # and IceGrid, set QT_HOME to the Qt installation directory, and go
 # to the database plugins directories to build them.
 #
@@ -276,7 +276,7 @@
 
 SLICE2CPPFLAGS		= $(ICECPPFLAGS)
 
-ifeq ($(ice_dir), /usr) 
+ifeq ($(ice_dir), /usr)
     LDFLAGS		= $(LDPLATFORMFLAGS) $(CXXFLAGS)
 else
     CPPFLAGS	+= -I$(includedir)
@@ -300,7 +300,7 @@
 endif
 
 ifeq ($(mkshlib),)
-    $(error You need to define mkshlib in Make.rules.$(UNAME)) 
+    $(error You need to define mkshlib in Make.rules.$(UNAME))
 endif
 
 ifeq ($(mktestname),)
@@ -354,7 +354,7 @@
 
 %.h %.cpp: %.ice $(SLICE2CPP) $(SLICEPARSERLIB)
 	rm -f $(*F).h $(*F).cpp
-	$(SLICE2CPP) $(SLICE2CPPFLAGS) $(*F).ice	
+	$(SLICE2CPP) $(SLICE2CPPFLAGS) $(*F).ice
 
 #%.h %.cpp: %.y
 #	rm -f $(*F).h $(*F).cpp
--- a/php/Makefile
+++ b/php/Makefile
@@ -11,7 +11,7 @@
 
 include $(top_srcdir)/config/Make.rules.php
 
-SUBDIRS		= src lib demo test
+SUBDIRS		= src lib
 INSTALL_SUBDIRS = $(install_phpdir) $(install_libdir)
 
 install:: install-common
