releases-comm-central/suite/branding/nightly/Makefile.in

109 строки
3.2 KiB
Makefile

#
# 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 = @DEPTH@
topsrcdir = @top_srcdir@
srcdir = @srcdir@
VPATH = @srcdir@
include $(DEPTH)/config/autoconf.mk
# Note: mac icons are handled in /suite/app during the final application
# packaging
ifneq (,$(filter windows os2 gtk gtk2,$(MOZ_WIDGET_TOOLKIT)))
ifneq (,$(filter windows os2,$(MOZ_WIDGET_TOOLKIT)))
ICON_SUFFIX=.ico
else
ICON_SUFFIX=.png
endif
ifeq ($(MOZ_WIDGET_TOOLKIT),gtk2)
ICON_DIR=gtk
else
ICON_DIR=$(MOZ_WIDGET_TOOLKIT)
endif
DESKTOP_ICONS = \
abcardWindow \
ablistWindow \
addressbookWindow \
bookmarkproperties \
downloadManager \
editorWindow \
findBookmarkWindow \
findHistoryWindow \
history-window \
JSConsoleWindow \
main-window \
messengerWindow \
msgcomposeWindow \
places \
venkman-window \
$(NULL)
ifeq (windows,$(MOZ_WIDGET_TOOLKIT))
# Windows icons
DESKTOP_ICONS += \
gif-file \
html-file \
misc-file \
image-file \
jpeg-file \
script-file \
xml-file \
xul-file \
$(NULL)
endif
ifeq ($(ICON_DIR),gtk)
libs:: icons/gtk/seamonkey.png
$(INSTALL) $(IFLAGS1) $^ $(DIST)/bin/chrome/icons/default
install:: icons/gtk/seamonkey.png
$(INSTALL) $(IFLAGS1) $^ $(DESTDIR)$(mozappdir)/chrome/icons/default
GARBAGE += $(DIST)/bin/chrome/icons/default/seamonkey.png
DESKTOP_ICONS += default
DESKTOP_ICONS_SMALL = $(patsubst %,%16,$(DESKTOP_ICONS))
DESKTOP_ICONS_LARGE = $(patsubst %,%48,$(DESKTOP_ICONS))
endif
DESKTOP_ICON_FILES = $(addsuffix $(ICON_SUFFIX), $(DESKTOP_ICONS) $(DESKTOP_ICONS_SMALL) $(DESKTOP_ICONS_LARGE))
libs:: $(addprefix icons/$(ICON_DIR)/,$(DESKTOP_ICON_FILES))
$(INSTALL) $(IFLAGS1) $^ $(DIST)/bin/chrome/icons/default
install:: $(addprefix icons/$(ICON_DIR)/,$(DESKTOP_ICON_FILES))
$(SYSINSTALL) $(IFLAGS1) $^ $(DESTDIR)$(mozappdir)/chrome/icons/default
GARBAGE += $(addprefix $(DIST)/bin/chrome/icons/default/,$(DESKTOP_ICON_FILES))
endif
include $(topsrcdir)/config/rules.mk
export::
$(NSINSTALL) -D $(DIST)/branding
ifeq ($(OS_ARCH),WINNT)
cp $(srcdir)/icons/windows/seamonkey.ico $(DIST)/branding/seamonkey.ico
cp $(srcdir)/icons/windows/html-file.ico $(DIST)/branding/html-file.ico
cp $(srcdir)/package/windows/branding.nsi $(DIST)/branding/branding.nsi
cp $(srcdir)/package/windows/wizHeader.bmp $(DIST)/branding/wizHeader.bmp
cp $(srcdir)/package/windows/wizHeaderRTL.bmp $(DIST)/branding/wizHeaderRTL.bmp
cp $(srcdir)/package/windows/wizWatermark.bmp $(DIST)/branding/wizWatermark.bmp
endif
ifeq (cocoa,$(MOZ_WIDGET_TOOLKIT))
$(NSINSTALL) -D $(DIST)/branding
$(NSINSTALL) -D $(DIST)/branding/icons
cp $(srcdir)/icons/mac/document.icns $(DIST)/branding/icons/document.icns
cp $(srcdir)/icons/mac/seamonkey.icns $(DIST)/branding/icons/seamonkey.icns
cp $(srcdir)/package/mac/dsstore $(DIST)/branding/dsstore
cp $(srcdir)/package/mac/background.png $(DIST)/branding/background.png
cp $(srcdir)/package/mac/disk.icns $(DIST)/branding/disk.icns
endif
ifeq ($(OS_ARCH),OS2)
cp $(srcdir)/icons/os2/seamonkey.ico $(DIST)/branding/seamonkey.ico
endif