Bug 1424171: Pass mozilla dir to compare-locales.
MozReview-Commit-ID: ASpAnAhzLzw
--- a/mail/locales/Makefile.in
+++ b/mail/locales/Makefile.in
@@ -59,16 +59,20 @@ GARBAGE += $(list-json)
libs:: searchplugins
# Required for l10n.mk - defines a list of app sub dirs that should
# be included in langpack xpis.
DIST_SUBDIRS = $(DIST_SUBDIR)
include $(moztopsrcdir)/config/rules.mk
+ifeq ($(commreltopsrcdir),comm)
+COMPARE_LOCALES_DEFINES += -Dmozilla=..
+endif
+
include $(moztopsrcdir)/toolkit/locales/l10n.mk
$(list-json): $(call mkdir_deps,$(SEARCHPLUGINS_PATH)) $(if $(IS_LANGUAGE_REPACK),FORCE)
$(call py_action,generate_searchjson,$(srcdir)/search/list.json $(AB_CD) $(list-json))
searchplugins:: $(list-json)
$(DIST)/branding:
$(NSINSTALL) -D $@