mailnews/Makefile.in
author Mike Conley <mconley@mozilla.com>
Tue, 31 Jul 2012 16:57:56 -0400
changeset 12521 cecb35e420ed6aaee20f070fe383de456a990ad4
parent 12286 84ac3c71109811da751f0ef2d72108075938f094
child 13273 6ce4c3cdaf3c3bace2bd82a9c46543a682fe262f
permissions -rw-r--r--
Bug 776609 - Instant Messaging button and menuitem in Address Book should integrate with new IM component. r=florian, a=Standard8.

#
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.

DEPTH		= ..
topsrcdir	= @top_srcdir@
srcdir		= @srcdir@
VPATH		= @srcdir@

include $(DEPTH)/config/autoconf.mk

MODULE       = mailnews

PARALLEL_DIRS	+= \
	addrbook \
	base/search/src \
	compose \
	db/gloda \
	db/msgdb \
	extensions\
	imap \
	local \
	mime \
	news \
	$(NULL)

ifdef ENABLE_TESTS
PARALLEL_DIRS += \
  test/performance/bloat \
  $(NULL)
endif

ifeq ($(OS_ARCH),WINNT)
ifndef GNU_CC
PARALLEL_DIRS += mapi/mapiDLL mapi/mapihook
endif
endif

DIRS += import build

PREF_JS_EXPORTS = $(srcdir)/mailnews.js

DEFINES += -DOS_ARCH=$(OS_ARCH) \
           -DMOZ_WIDGET_TOOLKIT=$(MOZ_WIDGET_TOOLKIT) \
           $(NULL)

include $(topsrcdir)/config/rules.mk

ifdef ENABLE_TESTS
libs::
	$(INSTALL) $(wildcard $(srcdir)/test/resources/*.js) $(MOZDEPTH)/_tests/xpcshell/mailnews/resources
	$(DIR_INSTALL) $(wildcard $(srcdir)/test/data/*) $(MOZDEPTH)/_tests/xpcshell/mailnews/data
	$(INSTALL) $(wildcard $(srcdir)/test/fakeserver/*.js) $(MOZDEPTH)/_tests/xpcshell/mailnews/fakeserver

# We provide an xpcshell-tests target here because the top-level target acts
# differently to the specific directory one. We want our developers to be able
# to run "make -C mailnews xpcshell-tests" so we do this short-cut here. This
# list is kept in the same order as the effective DIRS just so things turn up
# in the same order as the build.

TEST_DIRS = base $(PARALLEL_DIRS) extensions/bayesian-spam-filter extensions/mdn

xpcshell-tests::
	for dir in $(TEST_DIRS); do \
	  if test -d $$dir/test; then \
	    $(MAKE) -C $$dir/test xpcshell-tests; \
	  fi; \
	done
endif