--- Makefile.in.orig	Fri Sep  8 10:00:29 2000
+++ Makefile.in	Sat Sep 23 21:26:18 2000
@@ -172,8 +172,12 @@
 # These are built from source in the Docs directory
 EXTRA_DIST = INSTALL-SOURCE README 			COPYING COPYING.LIB MIRRORS
 
-SUBDIRS = include @docs_dirs@ @readline_dir@ 			@thread_dirs@ @sql_client_dirs@ 			@sql_server_dirs@ scripts tests man 			@bench_dirs@ support-files
 
+.if defined(CLIENT_ONLY)
+SUBDIRS = include @readline_dir@ @sql_client_dirs@ tests man
+.else
+SUBDIRS = include @thread_dirs@ @docs_dirs@ @sql_server_dirs@ scripts @bench_dirs@ support-files
+.endif
 
 # Relink after clean
 CLEANFILES = linked_client_sources linked_server_sources linked_libmysql_sources linked_libmysql_r_sources
