1999-08-20 06:56:38 +04:00
|
|
|
#
|
1999-11-06 06:43:54 +03:00
|
|
|
# The contents of this file are subject to the Netscape 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/NPL/
|
1999-08-20 06:56:38 +04:00
|
|
|
#
|
1999-11-06 06:43:54 +03:00
|
|
|
# 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.
|
1999-08-20 06:56:38 +04:00
|
|
|
#
|
|
|
|
# The Original Code is Mozilla Communicator client code,
|
|
|
|
# released March 31, 1998.
|
|
|
|
#
|
|
|
|
# The Initial Developer of the Original Code is Netscape Communications
|
1999-11-06 06:43:54 +03:00
|
|
|
# Corporation. Portions created by Netscape are
|
|
|
|
# Copyright (C) 1998 Netscape Communications Corporation. All
|
|
|
|
# Rights Reserved.
|
|
|
|
#
|
|
|
|
# Contributor(s):
|
1999-08-20 06:56:38 +04:00
|
|
|
#
|
|
|
|
|
|
|
|
DEPTH = ../..
|
|
|
|
topsrcdir = @top_srcdir@
|
|
|
|
srcdir = @srcdir@
|
|
|
|
VPATH = @srcdir@
|
|
|
|
|
|
|
|
include $(DEPTH)/config/autoconf.mk
|
|
|
|
|
|
|
|
#
|
|
|
|
# This is how we create the Unix binary packages we release to the public.
|
|
|
|
# Currently the only format is tar.gz (TGZ), but it should be fairly easy
|
|
|
|
# to add .rpm (RPM) and .deb (DEB) later.
|
|
|
|
#
|
|
|
|
ifndef MOZ_PKG_FORMAT
|
|
|
|
MOZ_PKG_FORMAT = TGZ
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(MOZ_PKG_FORMAT),TGZ)
|
|
|
|
PKG_SUFFIX = .tar.gz
|
|
|
|
endif
|
|
|
|
ifeq ($(MOZ_PKG_FORMAT),RPM)
|
|
|
|
PKG_SUFFIX = .rpm
|
|
|
|
endif
|
|
|
|
ifeq ($(MOZ_PKG_FORMAT),DEB)
|
|
|
|
PKG_SUFFIX = .deb
|
|
|
|
endif
|
|
|
|
|
|
|
|
PKG_BASENAME := mozilla-$(shell $(topsrcdir)/build/autoconf/config.guess)
|
1999-08-22 00:06:08 +04:00
|
|
|
PACKAGE := $(PKG_BASENAME)$(PKG_SUFFIX)
|
1999-08-20 06:56:38 +04:00
|
|
|
|
|
|
|
ifdef BUILD_OFFICIAL
|
1999-08-22 00:06:08 +04:00
|
|
|
TARGETS = $(PACKAGE)
|
1999-08-20 06:56:38 +04:00
|
|
|
endif
|
|
|
|
|
|
|
|
NSPR_DIR = $(DIST)/bin
|
|
|
|
ifndef EXCLUDE_NSPR_LIBS
|
|
|
|
NSPR_LDIR = $(findstring -L,$(NSPR_LIBS))
|
|
|
|
ifneq ($(NSPR_LDIR),)
|
1999-08-22 00:06:08 +04:00
|
|
|
NSPR_DIR = $(patsubst %lib,%bin,$(subst -L,,$(word 1,$(NSPR_LIBS))))
|
1999-08-20 06:56:38 +04:00
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
1999-08-24 03:46:37 +04:00
|
|
|
EXCLUDE_LIST = \
|
1999-08-20 06:56:38 +04:00
|
|
|
$(DIST)/bin/core \
|
|
|
|
$(DIST)/bin/bsdecho \
|
|
|
|
$(DIST)/bin/gtscc \
|
|
|
|
$(DIST)/bin/jscpucfg \
|
|
|
|
$(DIST)/bin/nsinstall \
|
1999-08-24 03:46:37 +04:00
|
|
|
$(DIST)/bin/viewer \
|
1999-08-20 06:56:38 +04:00
|
|
|
$(NULL)
|
|
|
|
|
|
|
|
include $(topsrcdir)/config/rules.mk
|
|
|
|
|
1999-08-22 00:06:08 +04:00
|
|
|
GARBAGE += $(DIST)/$(PACKAGE) $(PACKAGE)
|
|
|
|
|
1999-08-20 06:56:38 +04:00
|
|
|
ifeq ($(OS_ARCH),IRIX)
|
|
|
|
STRIP_FLAGS = -f
|
|
|
|
endif
|
|
|
|
|
1999-08-22 00:06:08 +04:00
|
|
|
all export libs install:: $(TARGETS)
|
|
|
|
|
1999-11-09 21:21:18 +03:00
|
|
|
$(PACKAGE): $(DIST)/bin/mozilla-bin
|
1999-08-20 06:56:38 +04:00
|
|
|
ifneq ($(NSPR_DIR),$(DIST)/bin)
|
|
|
|
@chmod 755 $(NSPR_DIR)/*
|
|
|
|
@cp -p $(NSPR_DIR)/* $(DIST)/bin/.
|
|
|
|
endif
|
1999-08-24 03:46:37 +04:00
|
|
|
@rm -f $(DIST)/package $(DIST)/$(PKG_BASENAME).tar $@ $(EXCLUDE_LIST)
|
1999-08-22 00:06:08 +04:00
|
|
|
@ln -s bin $(DIST)/package
|
1999-08-20 06:56:38 +04:00
|
|
|
@cd $(DIST)/bin; find . ! -type d -exec strip $(STRIP_FLAGS) {} \;
|
|
|
|
ifeq ($(MOZ_PKG_FORMAT),TGZ)
|
1999-08-22 00:06:08 +04:00
|
|
|
cd $(DIST); tar -cvhf - package | gzip > $@
|
1999-08-20 06:56:38 +04:00
|
|
|
endif
|
|
|
|
ifeq ($(MOZ_PKG_FORMAT),RPM)
|
|
|
|
@echo "Sorry, don't know how to build an RPM file yet...."
|
|
|
|
endif
|
|
|
|
ifeq ($(MOZ_PKG_FORMAT),DEB)
|
|
|
|
@echo "Sorry, don't know how to build a DEB file yet...."
|
|
|
|
endif
|
|
|
|
|