mail/test/mozmill/Makefile.in
author tbirdbld
Thu, 03 May 2018 19:17:35 -0400
branchTHUNDERBIRD600b6_2018050319_RELBRANCH
changeset 35347 c57380d21277e4ac75c43771634ad4e9f5866888
parent 28672 6da9066ad17a515e534f21a54b06bf655b71104f
child 31634 178da49fe8c830b5bf6e8d7a504feb18b17aadeb
permissions -rw-r--r--
Added THUNDERBIRD_60_0b6_RELEASE THUNDERBIRD_60_0b6_BUILD1 tag(s) for changeset 4bd4065b53b0. DONTBUILD CLOSED TREE a=release

#
# 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/.

include $(moztopsrcdir)/config/rules.mk

# We're installing to _tests/mozmill
_DEST_DIR = $(DEPTH)/_tests/mozmill

$(_DEST_DIR):
	$(NSINSTALL) -D $@


# Copy MozMill and its dependencies over, and set up a virtualenv. The
# virtualenv directory is outside because we don't want to bundle it up during
# stage-package.
VIRTUALENV_DIR = $(_DEST_DIR)/../mozmill-virtualenv
mozmill-virtualenv: $(_DEST_DIR)
	rm -rf $(VIRTUALENV_DIR) && \
	mkdir $(VIRTUALENV_DIR) && \
	unset MACOSX_DEPLOYMENT_TARGET && \
	$(PYTHON) $(_DEST_DIR)/resources/installmozmill.py $(VIRTUALENV_DIR)

ifndef MOZ_AUTOMATION
# We don't run mozmill tests as part of the build in automation, so skip
# creating a virtualenv for them.
libs:: mozmill-virtualenv
endif

PKG_STAGE = $(DIST)/test-stage

stage-package:
	$(NSINSTALL) -D $(PKG_STAGE)/mozmill/
	@(cd $(commtopsrcdir)/mail/test/mozmill && tar $(TAR_CREATE_FLAGS) - *) | (cd $(PKG_STAGE)/mozmill/ && tar -xf -)
	@(cd $(DEPTH)/_tests/mozmill && tar $(TAR_CREATE_FLAGS) - *) | (cd $(PKG_STAGE)/mozmill/ && tar -xf -)