1999-08-20 06:56:38 +04:00
#
2004-04-17 18:37:35 +04:00
# ***** BEGIN LICENSE BLOCK *****
# Version: MPL 1.1/GPL 2.0/LGPL 2.1
#
# 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 Mozilla Communicator client code, released
# March 31, 1998.
#
# The Initial Developer of the Original Code is
# Netscape Communications Corporation.
# Portions created by the Initial Developer are Copyright (C) 1998
# the Initial Developer. All Rights Reserved.
#
# Contributor(s):
2005-01-24 22:49:50 +03:00
# Arthur Wiebe <artooro@gmail.com>
2004-04-17 18:37:35 +04:00
#
# Alternatively, the contents of this file may be used under the terms of
# either of the GNU General Public License Version 2 or later (the "GPL"),
# or the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
# in which case the provisions of the GPL or the LGPL are applicable instead
# of those above. If you wish to allow use of your version of this file only
# under the terms of either the GPL or the LGPL, and not to allow others to
# use your version of this file under the terms of the MPL, indicate your
# decision by deleting the provisions above and replace them with the notice
# and other provisions required by the GPL or the LGPL. If you do not delete
# the provisions above, a recipient may use your version of this file under
# the terms of any one of the MPL, the GPL or the LGPL.
#
# ***** END LICENSE BLOCK *****
1999-08-20 06:56:38 +04:00
DEPTH = ../..
topsrcdir = @top_srcdir@
srcdir = @srcdir@
VPATH = @srcdir@
i n c l u d e $( DEPTH ) / c o n f i g / a u t o c o n f . m k
2001-05-23 02:05:15 +04:00
OSPACKAGE = unix
1999-08-20 06:56:38 +04:00
i f e q ( $( OS_ARCH ) , I R I X )
STRIP_FLAGS = -f
e n d i f
2001-01-14 04:43:08 +03:00
i f e q ( $( OS_ARCH ) , B e O S )
STRIP_FLAGS = -g
2004-01-26 03:40:13 +03:00
PLATFORM_EXCLUDE_LIST = ! -name "*.stub" ! -name " $( MOZ_PKG_APPNAME) -bin "
2001-01-14 04:43:08 +03:00
e n d i f
2001-05-23 02:05:15 +04:00
i f e q ( $( OS_ARCH ) , O S 2 )
2002-10-29 09:19:39 +03:00
STRIP = $( srcdir) /os2/strip.cmd
STRIP_FLAGS =
2001-05-23 02:05:15 +04:00
OSPACKAGE = os2
2002-10-29 09:19:39 +03:00
PLATFORM_EXCLUDE_LIST = ! -name "*.ico"
2001-05-23 02:05:15 +04:00
e n d i f
1999-08-20 06:56:38 +04:00
2005-07-03 00:39:09 +04:00
NO_PKG_FILES = \
$( NULL)
i n c l u d e $( topsrcdir ) / c o n f i g / r u l e s . m k
i n c l u d e $( topsrcdir ) / t o o l k i t / m o z a p p s / i n s t a l l e r / p a c k a g e r . m k
2003-02-01 01:56:32 +03:00
2001-01-23 18:53:12 +03:00
2001-05-23 02:05:15 +04:00
dist : $( MOZILLA_BIN )
2001-01-23 18:53:12 +03:00
i f n d e f M O Z _ P K G _ D E S T
@echo "Please define MOZ_PKG_DEST first. It must be an absolute path to a dir outside the source tree. It should be empty (files might get deleted without warning)."
@echo "Other options (not required):"
2001-03-30 07:59:43 +04:00
@echo "MOZ_PKG_FORMAT: Either TGZ for .tar.gz or BZ2 for .tar.bz2. Default TGZ."
2001-01-23 18:53:12 +03:00
@echo "MOZ_PKG_APPNAME: Application name, used for tarball filename, top-level dir in tarball and application start script. Default mozilla."
e l s e
@if [ ! -d $( MOZ_PKG_DEST) ] ; then mkdir $( MOZ_PKG_DEST) ; fi
@cd $( MOZ_PKG_DEST) ; rm -rf bin $( MOZ_PKG_APPNAME) $( PACKAGE)
@echo " Creating distribution tarball in $( MOZ_PKG_DEST) ... "
2001-05-23 02:05:15 +04:00
$( PERL) $( srcdir) /pkgcp.pl --source $( DEPTH) /dist --destination $( MOZ_PKG_DEST) --file $( srcdir) /packages-$( OSPACKAGE) --os $( OSPACKAGE) --flat
2001-01-23 18:53:12 +03:00
@cd $( MOZ_PKG_DEST) ; mv bin $( MOZ_PKG_APPNAME)
i f n e q ( $( MOZ_PKG_APPNAME ) , m o z i l l a )
@echo " Creating start script $( MOZ_PKG_APPNAME) ... "
cd $( MOZ_PKG_DEST) /$( MOZ_PKG_APPNAME) ; cp mozilla $( MOZ_PKG_APPNAME)
1999-08-20 06:56:38 +04:00
e n d i f
2001-01-23 18:53:12 +03:00
@echo "Compressing..."
cd $( MOZ_PKG_DEST) ; $( MAKE_PACKAGE)
@echo "Deleting work files..."
@cd $( MOZ_PKG_DEST) ; rm -rf $( MOZ_PKG_APPNAME)
@echo " Done creating $( PACKAGE) . "
1999-08-20 06:56:38 +04:00
e n d i f
2004-05-18 02:13:40 +04:00
installer ::
2003-10-07 00:39:30 +04:00
i f d e f I N S T A L L E R _ D I R
2005-08-26 00:33:56 +04:00
$( MAKE) -C $( INSTALLER_DIR) installer
2003-10-07 00:39:30 +04:00
e n d i f