gecko-dev/mail/config/Makefile.in
scott%scott-macgregor.org c5ae81a949 fix ctrl-m's
2003-12-14 22:40:32 +00:00

96 lines
4.1 KiB
Makefile

#
# The contents of this file are subject to the Mozilla Public
# License Version 1.1 (the "License"); you may not use this file
# except in compliance with the License. You may obtain a copy of
# the License at http://www.mozilla.org/MPL/
#
# Software distributed under the License is distributed on an "AS
# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
# implied. See the License for the specific language governing
# rights and limitations under the License.
#
# The Original Code is the Mozilla browser.
#
# The Initial Developer of the Original Code is Christopher
# Blizzard. Portions created by Christopher Blizzard
# Copyright (C) 1999, Christopher Blizzard. All Rights Reserved.
#
# Contributor(s):
#
DEPTH = ../..
topsrcdir = @top_srcdir@
srcdir = @srcdir@
VPATH = @srcdir@
include $(DEPTH)/config/autoconf.mk
include $(topsrcdir)/config/rules.mk
BASEMAIL = basemail-win
# packaging file for the pref extension which is optional
PREF = pref-win
APP_NAME=thunderbird
_PLATFORM = dos
mail_chrome: mail-jar.mn
# -$(RM) -rf $(DIST)/$(APP_NAME)/
ifeq ($(OS_ARCH),WINNT)
$(NSINSTALL) -D $(DIST)/$(APP_NAME)/tmpchrome/comm
$(UNZIP) -o -d $(DIST)/$(APP_NAME)/tmpchrome/comm $(DIST)/bin/chrome/comm.jar
$(NSINSTALL) -D $(DIST)/$(APP_NAME)/tmpchrome/toolkit
$(UNZIP) -o -d $(DIST)/$(APP_NAME)/tmpchrome/toolkit $(DIST)/bin/chrome/toolkit.jar
$(NSINSTALL) -D $(DIST)/$(APP_NAME)/tmpchrome/msg
$(UNZIP) -o -d $(DIST)/$(APP_NAME)/tmpchrome/msg $(DIST)/bin/chrome/messenger.jar
$(NSINSTALL) -D $(DIST)/$(APP_NAME)/tmpchrome/classic
$(UNZIP) -o -d $(DIST)/$(APP_NAME)/tmpchrome/classic $(DIST)/bin/chrome/classic.jar
$(NSINSTALL) -D $(DIST)/$(APP_NAME)/tmpchrome/en-US
$(UNZIP) -o -d $(DIST)/$(APP_NAME)/tmpchrome/en-US $(DIST)/bin/chrome/en-US.jar
$(NSINSTALL) -D $(DIST)/$(APP_NAME)/tmpchrome/US
$(UNZIP) -o -d $(DIST)/$(APP_NAME)/tmpchrome/US $(DIST)/bin/chrome/US.jar
ifdef MOZ_PSM
$(NSINSTALL) -D $(DIST)/$(APP_NAME)/tmpchrome/pipnss
$(UNZIP) -o -d $(DIST)/$(APP_NAME)/tmpchrome/pipnss $(DIST)/bin/chrome/pipnss.jar
$(NSINSTALL) -D $(DIST)/$(APP_NAME)/tmpchrome/pippki
$(UNZIP) -o -d $(DIST)/$(APP_NAME)/tmpchrome/pippki $(DIST)/bin/chrome/pippki.jar
endif
endif
$(PERL) -I$(srcdir) $(srcdir)/gen_mn.pl -manifest $(MOZILLA_DIR)/mail/config/mail-jar.mn -mozpath $(MOZILLA_DIR) -jarfile mail.jar -chrome $(DIST)/$(APP_NAME)/tmpchrome > $(MOZILLA_DIR)/mail/config/mail-tmp.mn
$(PERL) -I$(MOZILLA_DIR)/config $(MOZILLA_DIR)/config/make-jars.pl -a -v -f $(MOZ_CHROME_FILE_FORMAT) -d $(DIST)/bin/chrome -s $(DIST)/$(APP_NAME)/tmpchrome -z $(ZIP) < $(MOZILLA_DIR)/mail/config/mail-tmp.mn
$(PERL) -I$(srcdir) $(srcdir)/gen_mn.pl -manifest $(MOZILLA_DIR)/mail/config/qute-jar.mn -mozpath $(MOZILLA_DIR) -jarfile qute.jar -chrome $(DIST)/$(APP_NAME)/tmpchrome > $(MOZILLA_DIR)/mail/config/qute-tmp.mn
$(PERL) -I$(MOZILLA_DIR)/config $(MOZILLA_DIR)/config/make-jars.pl -a -v -f $(MOZ_CHROME_FILE_FORMAT) -d $(DIST)/bin/chrome -s $(DIST)/$(APP_NAME)/tmpchrome -z $(ZIP) < $(MOZILLA_DIR)/mail/config/qute-tmp.mn
$(PERL) -I$(srcdir) $(srcdir)/gen_mn.pl -manifest $(MOZILLA_DIR)/mail/config/en-US-jar.mn -mozpath $(MOZILLA_DIR) -jarfile en-US-mail.jar -chrome $(DIST)/$(APP_NAME)/tmpchrome > $(MOZILLA_DIR)/mail/config/en-US-tmp.mn
$(PERL) -I$(MOZILLA_DIR)/config $(MOZILLA_DIR)/config/make-jars.pl -a -v -f $(MOZ_CHROME_FILE_FORMAT) -d $(DIST)/bin/chrome -s $(DIST)/$(APP_NAME)/tmpchrome -z $(ZIP) < $(MOZILLA_DIR)/mail/config/en-US-tmp.mn
-$(RM) -f $(MOZILLA_DIR)/mail/config/mail-tmp.mn
-$(RM) -f $(MOZILLA_DIR)/mail/config/qute-tmp.mn
-$(RM) -f $(MOZILLA_DIR)/mail/config/en-US-tmp.mn
-$(RM) -rf $(DIST)/$(APP_NAME)/tmpchrome
mail_copy::
$(PERL) $(topsrcdir)/xpinstall/packager/pkgcp.pl -s $(DIST)/bin -d $(DIST) --f $(srcdir)/$(BASEMAIL) -o $(_PLATFORM) -v
ifneq (,$(findstring pref,$(MOZ_EXTENSIONS)))
$(PERL) $(topsrcdir)/xpinstall/packager/pkgcp.pl -s $(DIST)/bin -d $(DIST) --f $(srcdir)/$(PREF) -o $(_PLATFORM) -v
endif
$(NSINSTALL) -t $(DIST)/bin/$(APP_NAME)$(BIN_SUFFIX) $(DIST)/$(APP_NAME)/
$(NSINSTALL) -t $(MOZILLA_DIR)/mail/config/installed-chrome.txt $(DIST)/$(APP_NAME)/chrome
libs::
$(MAKE) mail_chrome
$(MAKE) mail_copy