From f4568a3e25ef433c59264d39ea1592d9e7dbb7b3 Mon Sep 17 00:00:00 2001 From: "alecf%netscape.com" Date: Thu, 4 Mar 1999 01:36:25 +0000 Subject: [PATCH] only build tests when ENABLE_TESTS (i.e. --enable-tests) is turned on --- db/mdb/Makefile.in | 4 ++++ mailnews/base/Makefile.in | 7 ++++++- mailnews/compose/Makefile.in | 6 +++++- mailnews/db/mdb/Makefile.in | 4 ++++ mailnews/db/msgdb/Makefile.in | 6 +++++- mailnews/local/Makefile.in | 6 +++++- mailnews/mime/Makefile.in | 6 +++++- mailnews/news/Makefile.in | 4 ++++ 8 files changed, 38 insertions(+), 5 deletions(-) diff --git a/db/mdb/Makefile.in b/db/mdb/Makefile.in index b793ca871e29..d654784d42e4 100644 --- a/db/mdb/Makefile.in +++ b/db/mdb/Makefile.in @@ -25,6 +25,10 @@ include $(DEPTH)/config/autoconf.mk # no src yet, or tests or build DIRS = public +ifdef ENABLE_TESTS +# DIRS += tests +endif + include $(topsrcdir)/config/config.mk include $(topsrcdir)/config/rules.mk diff --git a/mailnews/base/Makefile.in b/mailnews/base/Makefile.in index 9a375e155e9f..5da8ec236e3e 100644 --- a/mailnews/base/Makefile.in +++ b/mailnews/base/Makefile.in @@ -22,7 +22,12 @@ srcdir = @srcdir@ include $(DEPTH)/config/autoconf.mk -DIRS = public src build tests +DIRS = public src build + +ifdef ENABLE_TESTS +DIRS += tests +endif + include $(topsrcdir)/config/config.mk diff --git a/mailnews/compose/Makefile.in b/mailnews/compose/Makefile.in index 9a375e155e9f..d5a1de4e4088 100644 --- a/mailnews/compose/Makefile.in +++ b/mailnews/compose/Makefile.in @@ -22,7 +22,11 @@ srcdir = @srcdir@ include $(DEPTH)/config/autoconf.mk -DIRS = public src build tests +DIRS = public src build + +ifdef ENABLE_TESTS +DIRS += tests +endif include $(topsrcdir)/config/config.mk diff --git a/mailnews/db/mdb/Makefile.in b/mailnews/db/mdb/Makefile.in index b793ca871e29..d654784d42e4 100644 --- a/mailnews/db/mdb/Makefile.in +++ b/mailnews/db/mdb/Makefile.in @@ -25,6 +25,10 @@ include $(DEPTH)/config/autoconf.mk # no src yet, or tests or build DIRS = public +ifdef ENABLE_TESTS +# DIRS += tests +endif + include $(topsrcdir)/config/config.mk include $(topsrcdir)/config/rules.mk diff --git a/mailnews/db/msgdb/Makefile.in b/mailnews/db/msgdb/Makefile.in index 0b2bde3598c6..0a9ceea9fa64 100644 --- a/mailnews/db/msgdb/Makefile.in +++ b/mailnews/db/msgdb/Makefile.in @@ -22,7 +22,11 @@ srcdir = @srcdir@ include $(DEPTH)/config/autoconf.mk -DIRS = public src # tests +DIRS = public src + +ifdef ENABLE_TESTS +DIRS += tests +endif include $(topsrcdir)/config/config.mk diff --git a/mailnews/local/Makefile.in b/mailnews/local/Makefile.in index ba62a4536be4..a7314801d481 100644 --- a/mailnews/local/Makefile.in +++ b/mailnews/local/Makefile.in @@ -22,7 +22,11 @@ srcdir = @srcdir@ include $(DEPTH)/config/autoconf.mk -DIRS = public src tests +DIRS = public src + +ifdef ENABLE_TESTS +DIRS += tests +endif include $(topsrcdir)/config/config.mk diff --git a/mailnews/mime/Makefile.in b/mailnews/mime/Makefile.in index 26db5e3ec789..56d1153f9faf 100644 --- a/mailnews/mime/Makefile.in +++ b/mailnews/mime/Makefile.in @@ -22,7 +22,11 @@ srcdir = @srcdir@ include $(DEPTH)/config/autoconf.mk -DIRS = public src cthandlers tests +DIRS = public src cthandlers + +ifdef ENABLE_TESTS +DIRS += tests +endif include $(topsrcdir)/config/config.mk diff --git a/mailnews/news/Makefile.in b/mailnews/news/Makefile.in index ba62a4536be4..c1c628f81ddb 100644 --- a/mailnews/news/Makefile.in +++ b/mailnews/news/Makefile.in @@ -24,6 +24,10 @@ include $(DEPTH)/config/autoconf.mk DIRS = public src tests +ifdef ENABLE_TESTS +DIRS += tests +endif + include $(topsrcdir)/config/config.mk include $(topsrcdir)/config/rules.mk