2001-06-07 10:59:52 -05:00
|
|
|
#*************************************************************************
|
|
|
|
#
|
2005-09-08 03:43:58 -05:00
|
|
|
# OpenOffice.org - a multi-platform office productivity suite
|
2001-06-07 10:59:52 -05:00
|
|
|
#
|
2005-09-08 03:43:58 -05:00
|
|
|
# $RCSfile: tg_ext.mk,v $
|
2001-06-07 10:59:52 -05:00
|
|
|
#
|
2007-04-26 07:57:21 -05:00
|
|
|
# $Revision: 1.76 $
|
2001-06-07 10:59:52 -05:00
|
|
|
#
|
2007-04-26 07:57:21 -05:00
|
|
|
# last change: $Author: rt $ $Date: 2007-04-26 13:57:21 $
|
2001-06-07 10:59:52 -05:00
|
|
|
#
|
2005-09-08 03:43:58 -05:00
|
|
|
# The Contents of this file are made available subject to
|
|
|
|
# the terms of GNU Lesser General Public License Version 2.1.
|
2001-06-07 10:59:52 -05:00
|
|
|
#
|
|
|
|
#
|
2005-09-08 03:43:58 -05:00
|
|
|
# GNU Lesser General Public License Version 2.1
|
|
|
|
# =============================================
|
|
|
|
# Copyright 2005 by Sun Microsystems, Inc.
|
|
|
|
# 901 San Antonio Road, Palo Alto, CA 94303, USA
|
2001-06-07 10:59:52 -05:00
|
|
|
#
|
2005-09-08 03:43:58 -05:00
|
|
|
# This library is free software; you can redistribute it and/or
|
|
|
|
# modify it under the terms of the GNU Lesser General Public
|
|
|
|
# License version 2.1, as published by the Free Software Foundation.
|
2001-06-07 10:59:52 -05:00
|
|
|
#
|
2005-09-08 03:43:58 -05:00
|
|
|
# This library is distributed in the hope that it will be useful,
|
|
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
# Lesser General Public License for more details.
|
2001-06-07 10:59:52 -05:00
|
|
|
#
|
2005-09-08 03:43:58 -05:00
|
|
|
# You should have received a copy of the GNU Lesser General Public
|
|
|
|
# License along with this library; if not, write to the Free Software
|
|
|
|
# Foundation, Inc., 59 Temple Place, Suite 330, Boston,
|
|
|
|
# MA 02111-1307 USA
|
2001-06-07 10:59:52 -05:00
|
|
|
#
|
|
|
|
#*************************************************************************
|
2001-06-07 12:34:33 -05:00
|
|
|
|
2003-06-04 04:40:13 -05:00
|
|
|
.EXPORT : CC CXX
|
|
|
|
|
2002-03-22 04:03:20 -06:00
|
|
|
# setup INCLUDE variable for use by VC++
|
2004-06-16 04:35:15 -05:00
|
|
|
.IF "$(GUI)$(COM)"=="WNTMSC"
|
2002-03-22 04:03:20 -06:00
|
|
|
.IF "$(EXT_USE_STLPORT)"==""
|
2007-01-25 05:54:34 -06:00
|
|
|
INCLUDE!:=$(shell $(4nt_force_shell)$(WRAPCMD) echo $(subst,$/stl, $(SOLARINC)))
|
2004-09-21 03:42:53 -05:00
|
|
|
.ELSE
|
2007-01-25 05:54:34 -06:00
|
|
|
INCLUDE!:=$(shell $(4nt_force_shell)$(WRAPCMD) echo $(SOLARINC))
|
2002-03-22 04:03:20 -06:00
|
|
|
.ENDIF # "$(EXT_USE_STLPORT)"==""
|
2004-09-15 04:35:18 -05:00
|
|
|
INCLUDE!:=$(INCLUDE:s/ -I/;/)
|
2001-06-07 12:34:33 -05:00
|
|
|
.EXPORT : INCLUDE
|
2004-06-16 04:35:15 -05:00
|
|
|
.ENDIF # "$(GUI)$(COM)"=="WNTMSC"
|
2001-06-07 12:34:33 -05:00
|
|
|
|
2002-03-22 04:03:20 -06:00
|
|
|
.IF "$(OS)"!="NETBSD"
|
2003-04-28 10:44:13 -05:00
|
|
|
.IF "$(OS)"!="FREEBSD"
|
2002-03-22 04:03:20 -06:00
|
|
|
PATCHFLAGS=-b
|
2003-04-28 10:44:13 -05:00
|
|
|
.ENDIF # "$(OS)"=="FREEBSD"
|
2002-03-22 04:03:20 -06:00
|
|
|
.ENDIF # "$(OS)"=="NETBSD"
|
|
|
|
|
2001-06-07 10:59:52 -05:00
|
|
|
#override
|
2001-10-19 10:23:55 -05:00
|
|
|
PACKAGE_DIR=$(MISC)$/build
|
2006-07-05 15:58:11 -05:00
|
|
|
ABS_PACKAGE_DIR:=$(MAKEDIR)$/$(MISC)$/build
|
2001-10-19 10:23:55 -05:00
|
|
|
#MUST match with PACKAGE_DIR
|
|
|
|
BACK_PATH=..$/..$/..$/
|
|
|
|
|
2002-07-19 10:29:38 -05:00
|
|
|
# Remove entire package from output directory, for example, if new patches are
|
|
|
|
# to be applied.
|
2007-02-06 06:59:24 -06:00
|
|
|
# is this used at all?
|
|
|
|
#.IF "$(GUI)"=="UNX" || "$(USE_SHELL)"!="4nt"
|
|
|
|
# REMOVE_PACKAGE_COMMAND=-$(RM) -r $(PACKAGE_DIR)$/$(TARFILE_ROOTDIR) >& $(NULLDEV)
|
|
|
|
#.ELSE # "$(GUI)"=="WNT"
|
|
|
|
# REMOVE_PACKAGE_COMMAND=-$(RM) /s $(PACKAGE_DIR)$/$(TARFILE_ROOTDIR) >& $(NULLDEV)
|
|
|
|
#.ENDIF # "$(GUI)"=="WNT"
|
2002-07-19 10:29:38 -05:00
|
|
|
|
2001-06-07 10:59:52 -05:00
|
|
|
P_CONFIGURE_DIR=$(PACKAGE_DIR)$/$(TARFILE_ROOTDIR)$/$(CONFIGURE_DIR)
|
|
|
|
P_BUILD_DIR=$(PACKAGE_DIR)$/$(TARFILE_ROOTDIR)$/$(BUILD_DIR)
|
2001-07-17 03:58:22 -05:00
|
|
|
P_INSTALL_DIR=$(PACKAGE_DIR)$/$(TARFILE_ROOTDIR)$/$(BUILD_DIR)
|
|
|
|
P_INSTALL_TARGET_DIR=$(MISC)$/install
|
|
|
|
|
2002-02-08 07:42:47 -06:00
|
|
|
.IF "$(PATCH_FILE_NAME)"=="none" || "$(PATCH_FILE_NAME)"==""
|
|
|
|
NEW_PATCH_FILE_NAME:=$(TARFILE_NAME)
|
|
|
|
.ELSE # "$(PATCH_FILE_NAME)"=="none" || "$(PATCH_FILE_NAME)"==""
|
|
|
|
NEW_PATCH_FILE_NAME:=$(PATCH_FILE_NAME)
|
2004-10-21 03:56:55 -05:00
|
|
|
PATCH_FILE_DEP:=$(PRJ)$/$(NEW_PATCH_FILE_NAME)
|
2002-02-08 07:42:47 -06:00
|
|
|
.ENDIF # "$(PATCH_FILE_NAME)"=="none" || "$(PATCH_FILE_NAME)"==""
|
|
|
|
|
2001-10-30 11:04:46 -06:00
|
|
|
.IF "$(TAR_EXCLUDES)"!=""
|
2002-04-15 08:08:35 -05:00
|
|
|
TAR_EXCLUDE_SWITCH=--exclude=$(TAR_EXCLUDES)
|
2001-10-30 11:04:46 -06:00
|
|
|
.ENDIF # "$(TAR_EXCLUDES)"!=""
|
|
|
|
|
2006-02-06 09:19:27 -06:00
|
|
|
# Clean PWD to let a build_action=dmake set it with new value. (See iz61212)
|
|
|
|
.IF "$(USE_SHELL)"=="4nt"
|
2001-07-17 03:58:22 -05:00
|
|
|
PWD:=
|
|
|
|
.EXPORT : PWD
|
2006-02-06 09:19:27 -06:00
|
|
|
.ENDIF # "$(USE_SHELL)"=="4nt"
|
2001-06-15 11:51:48 -05:00
|
|
|
|
|
|
|
.IF "$(ADDITIONAL_FILES)"!=""
|
2001-06-15 08:30:43 -05:00
|
|
|
P_ADDITIONAL_FILES=$(foreach,i,$(ADDITIONAL_FILES) $(MISC)$/$(TARFILE_ROOTDIR)$/$i)
|
2001-06-15 11:51:48 -05:00
|
|
|
T_ADDITIONAL_FILES=$(foreach,i,$(ADDITIONAL_FILES) $(PACKAGE_DIR)$/$(TARFILE_ROOTDIR)$/$i)
|
|
|
|
.ENDIF # "$(ADDITIONAL_FILES)"!=""
|
2001-06-07 10:59:52 -05:00
|
|
|
|
2006-07-05 15:58:11 -05:00
|
|
|
.IF "$(L10N_framework)"==""
|
2001-06-07 10:59:52 -05:00
|
|
|
|
|
|
|
ALLTAR : \
|
|
|
|
$(PACKAGE_DIR)$/$(UNTAR_FLAG_FILE) \
|
|
|
|
$(PACKAGE_DIR)$/$(BUILD_FLAG_FILE) \
|
2001-07-17 03:58:22 -05:00
|
|
|
$(PACKAGE_DIR)$/$(INSTALL_FLAG_FILE) \
|
2001-06-07 10:59:52 -05:00
|
|
|
$(PACKAGE_DIR)$/$(CONFIGURE_FLAG_FILE) \
|
2001-07-17 03:58:22 -05:00
|
|
|
$(PACKAGE_DIR)$/$(ADD_FILES_FLAG_FILE) \
|
2001-06-07 10:59:52 -05:00
|
|
|
$(PACKAGE_DIR)$/$(PATCH_FLAG_FILE) \
|
|
|
|
$(PACKAGE_DIR)$/$(PREDELIVER_FLAG_FILE)
|
|
|
|
|
|
|
|
clean:
|
2007-01-25 05:54:34 -06:00
|
|
|
cd $(P_BUILD_DIR) && $(BUILD_ACTION) $(BUILD_FLAGS) clean
|
|
|
|
$(RM) $(PACKAGE_DIR)$/$(BUILD_FLAG_FILE)
|
2006-10-05 10:35:56 -05:00
|
|
|
|
2007-02-06 06:59:24 -06:00
|
|
|
$(MISC)$/%.unpack : $(PRJ)$/download$/%.tar.bz2
|
2007-01-25 05:54:34 -06:00
|
|
|
@-$(RM) $@
|
2002-04-03 09:58:55 -06:00
|
|
|
.IF "$(GUI)"=="UNX"
|
2007-02-06 06:59:24 -06:00
|
|
|
@noop $(assign UNPACKCMD := sh -c "bzip2 -cd $(BACK_PATH)download$/$(TARFILE_NAME).tar.bz2 $(TARFILE_FILTER) | tar $(TAR_EXCLUDE_SWITCH) -xvf - ")
|
2002-04-03 09:58:55 -06:00
|
|
|
.ELSE # "$(GUI)"=="UNX"
|
2007-02-06 06:59:24 -06:00
|
|
|
@noop $(assign UNPACKCMD := bzip2 -cd $(BACK_PATH)download$/$(TARFILE_NAME).tar.bz2 $(TARFILE_FILTER) | tar $(TAR_EXCLUDE_SWITCH) -xvf - )
|
2002-04-03 09:58:55 -06:00
|
|
|
.ENDIF # "$(GUI)"=="UNX"
|
2007-01-25 05:54:34 -06:00
|
|
|
@$(TYPE) $(mktmp $(UNPACKCMD)) > $@.$(INPATH)
|
|
|
|
@$(RENAME) $@.$(INPATH) $@
|
2002-02-08 07:42:47 -06:00
|
|
|
|
2007-02-06 06:59:24 -06:00
|
|
|
$(MISC)$/%.unpack : $(PRJ)$/download$/%.tar.Z
|
2007-01-25 05:54:34 -06:00
|
|
|
@-$(RM) $@
|
2002-04-03 09:58:55 -06:00
|
|
|
.IF "$(GUI)"=="UNX"
|
2007-02-06 06:59:24 -06:00
|
|
|
@noop $(assign UNPACKCMD := sh -c "uncompress -c $(BACK_PATH)download$/$(TARFILE_NAME).tar.Z | tar $(TAR_EXCLUDE_SWITCH) -xvf - ")
|
2002-04-03 09:58:55 -06:00
|
|
|
.ELSE # "$(GUI)"=="UNX"
|
2007-02-06 06:59:24 -06:00
|
|
|
@noop $(assign UNPACKCMD := uncompress -c $(BACK_PATH)download$/$(TARFILE_NAME).tar.Z | tar $(TAR_EXCLUDE_SWITCH) -xvf - )
|
2003-06-12 04:00:53 -05:00
|
|
|
.ENDIF # "$(GUI)"=="UNX"
|
2007-01-25 05:54:34 -06:00
|
|
|
@$(TYPE) $(mktmp $(UNPACKCMD)) > $@.$(INPATH)
|
|
|
|
@$(RENAME) $@.$(INPATH) $@
|
2006-10-05 10:35:56 -05:00
|
|
|
|
2007-02-06 06:59:24 -06:00
|
|
|
$(MISC)$/%.unpack : $(PRJ)$/download$/%.tar.gz
|
2007-01-25 05:54:34 -06:00
|
|
|
@-$(RM) $@
|
2006-08-22 07:18:13 -05:00
|
|
|
.IF "$(GUI)"=="UNX"
|
2007-02-06 06:59:24 -06:00
|
|
|
@noop $(assign UNPACKCMD := sh -c "gunzip -c $(BACK_PATH)download$/$(TARFILE_NAME).tar.gz $(TARFILE_FILTER) | tar $(TAR_EXCLUDE_SWITCH) -xvf - ")
|
2006-08-22 07:18:13 -05:00
|
|
|
.ELSE # "$(GUI)"=="UNX"
|
2007-02-06 06:59:24 -06:00
|
|
|
@noop $(assign UNPACKCMD := gunzip -c $(BACK_PATH)download$/$(TARFILE_NAME).tar.gz $(TARFILE_FILTER) | tar $(TAR_EXCLUDE_SWITCH) -xvf - )
|
2006-08-22 07:18:13 -05:00
|
|
|
.ENDIF # "$(GUI)"=="UNX"
|
2007-01-25 05:54:34 -06:00
|
|
|
@$(TYPE) $(mktmp $(UNPACKCMD)) > $@.$(INPATH)
|
|
|
|
@$(RENAME) $@.$(INPATH) $@
|
2006-10-05 10:35:56 -05:00
|
|
|
|
2003-06-12 04:00:53 -05:00
|
|
|
$(MISC)$/%.unpack : $(PRJ)$/download$/%.tgz
|
2007-01-25 05:54:34 -06:00
|
|
|
@-$(RM) $@
|
2003-06-12 04:00:53 -05:00
|
|
|
.IF "$(GUI)"=="UNX"
|
2006-10-05 04:40:06 -05:00
|
|
|
@noop $(assign UNPACKCMD := sh -c "gunzip -c $(BACK_PATH)download$/$(TARFILE_NAME).tgz $(TARFILE_FILTER) | tar $(TAR_EXCLUDE_SWITCH) -xvf - ")
|
2003-06-12 04:00:53 -05:00
|
|
|
.ELSE # "$(GUI)"=="UNX"
|
2006-10-05 04:40:06 -05:00
|
|
|
@noop $(assign UNPACKCMD := gunzip -c $(BACK_PATH)download$/$(TARFILE_NAME).tgz $(TARFILE_FILTER) | tar $(TAR_EXCLUDE_SWITCH) -xvf - )
|
2002-04-03 09:58:55 -06:00
|
|
|
.ENDIF # "$(GUI)"=="UNX"
|
2007-01-25 05:54:34 -06:00
|
|
|
@$(TYPE) $(mktmp $(UNPACKCMD)) > $@.$(INPATH)
|
|
|
|
@$(RENAME) $@.$(INPATH) $@
|
2001-06-07 10:59:52 -05:00
|
|
|
|
2001-10-29 11:26:35 -06:00
|
|
|
$(MISC)$/%.unpack : $(PRJ)$/download$/%.tar
|
2007-01-25 05:54:34 -06:00
|
|
|
@-$(RM) $@
|
2006-10-05 04:40:06 -05:00
|
|
|
noop $(assign UNPACKCMD := tar $(TAR_EXCLUDE_SWITCH) -xvf $(BACK_PATH)download$/$(TARFILE_NAME).tar)
|
2007-01-25 05:54:34 -06:00
|
|
|
@$(TYPE) $(mktmp $(UNPACKCMD)) > $@.$(INPATH)
|
|
|
|
@$(RENAME) $@.$(INPATH) $@
|
2001-06-07 10:59:52 -05:00
|
|
|
|
2002-03-04 09:26:00 -06:00
|
|
|
$(MISC)$/%.unpack : $(PRJ)$/download$/%.zip
|
2007-01-25 05:54:34 -06:00
|
|
|
@-$(RM) $@
|
2006-10-05 04:40:06 -05:00
|
|
|
noop $(assign UNPACKCMD := unzip $(BACK_PATH)download$/$(TARFILE_NAME).zip)
|
2007-01-25 05:54:34 -06:00
|
|
|
@$(TYPE) $(mktmp $(UNPACKCMD)) > $@.$(INPATH)
|
|
|
|
@$(RENAME) $@.$(INPATH) $@
|
2002-03-04 09:26:00 -06:00
|
|
|
|
2006-07-05 15:58:11 -05:00
|
|
|
#do unpack
|
2004-09-20 02:36:06 -05:00
|
|
|
$(PACKAGE_DIR)$/$(UNTAR_FLAG_FILE) : $(PRJ)$/$(ROUT)$/misc$/$(TARFILE_NAME).unpack $(PATCH_FILE_DEP)
|
2007-01-25 05:54:34 -06:00
|
|
|
$(IFEXIST) $(PACKAGE_DIR)$/$(TARFILE_ROOTDIR) $(THEN) $(RENAME:s/+//) $(PACKAGE_DIR)$/$(TARFILE_ROOTDIR) $(PACKAGE_DIR)$/$(TARFILE_ROOTDIR)_removeme $(FI)
|
|
|
|
-rm -rf $(PACKAGE_DIR)$/$(TARFILE_ROOTDIR)_removeme
|
2006-10-05 10:35:56 -05:00
|
|
|
@-$(MKDIR) $(PACKAGE_DIR:d)
|
|
|
|
@-$(MKDIR) $(PACKAGE_DIR)
|
2007-01-25 05:54:34 -06:00
|
|
|
cd $(PACKAGE_DIR) && ( $(shell $(TYPE) $(PRJ)$/$(ROUT)$/misc$/$(TARFILE_NAME).unpack)) && $(TOUCH) $(UNTAR_FLAG_FILE)
|
2006-10-05 04:40:06 -05:00
|
|
|
@echo make writeable...
|
2002-05-10 06:12:12 -05:00
|
|
|
.IF "$(GUI)"=="UNX" || "$(USE_SHELL)"!="4nt"
|
2007-01-25 05:54:34 -06:00
|
|
|
@cd $(PACKAGE_DIR) && chmod -R +rw $(TARFILE_ROOTDIR) && $(TOUCH) $(UNTAR_FLAG_FILE)
|
|
|
|
@cd $(PACKAGE_DIR) && find $(TARFILE_ROOTDIR) -type d -exec chmod a+x {{}} \;
|
2004-09-20 02:36:06 -05:00
|
|
|
.ELSE # "$(GUI)"=="UNX" || "$(USE_SHELL)"!="4nt"
|
|
|
|
# Native W32 tools generate only filedates with even seconds, cygwin also with odd seconds
|
2007-01-25 05:54:34 -06:00
|
|
|
$(DELAY) 2
|
|
|
|
@cd $(PACKAGE_DIR) && attrib /s -r $(TARFILE_ROOTDIR) >& $(NULLDEV) && $(TOUCH) $(UNTAR_FLAG_FILE)
|
2004-09-20 02:36:06 -05:00
|
|
|
.ENDIF # "$(GUI)"=="UNX" || "$(USE_SHELL)"!="4nt"
|
2001-07-17 03:58:22 -05:00
|
|
|
|
|
|
|
#add new files to patch
|
2004-09-20 02:36:06 -05:00
|
|
|
$(PACKAGE_DIR)$/$(ADD_FILES_FLAG_FILE) : $(PACKAGE_DIR)$/$(UNTAR_FLAG_FILE) $(T_ADDITIONAL_FILES:+".dummy")
|
2001-07-17 03:58:22 -05:00
|
|
|
.IF "$(GUI)"=="WNT"
|
2001-10-29 11:26:35 -06:00
|
|
|
@$(TOUCH) $@
|
2001-07-17 03:58:22 -05:00
|
|
|
.ELSE # "$(GUI)"=="WNT"
|
2001-10-29 11:26:35 -06:00
|
|
|
@$(TOUCH) $@
|
2001-07-17 03:58:22 -05:00
|
|
|
.ENDIF # "$(GUI)"=="WNT"
|
|
|
|
|
2001-06-07 10:59:52 -05:00
|
|
|
#patch
|
2001-07-17 03:58:22 -05:00
|
|
|
$(PACKAGE_DIR)$/$(PATCH_FLAG_FILE) : $(PACKAGE_DIR)$/$(ADD_FILES_FLAG_FILE)
|
2001-06-07 10:59:52 -05:00
|
|
|
.IF "$(PATCH_FILE_NAME)"=="none" || "$(PATCH_FILE_NAME)"==""
|
2007-01-25 05:54:34 -06:00
|
|
|
echo no patch needed...
|
|
|
|
$(TOUCH) $@
|
2001-06-07 10:59:52 -05:00
|
|
|
.ELSE # "$(PATCH_FILE_NAME)"=="none" || "$(PATCH_FILE_NAME)"==""
|
2001-07-17 08:07:46 -05:00
|
|
|
.IF "$(GUI)"=="WNT"
|
2002-06-13 11:55:47 -05:00
|
|
|
# hack to make 4nt version 4,01 work and still get propper
|
|
|
|
# errorcodes for versions < 3,00
|
|
|
|
.IF "$(my4ver:s/.//:s/,//)" >= "300"
|
2007-01-25 05:54:34 -06:00
|
|
|
cd $(PACKAGE_DIR) && ( $(TYPE:s/+//) $(BACK_PATH)$(PATCH_FILE_NAME) | tr -d "\015" | patch $(PATCHFLAGS) -p2 ) && $(TOUCH) $(PATCH_FLAG_FILE)
|
2002-06-13 11:55:47 -05:00
|
|
|
.ELSE # "$(my4ver:s/.//:s/,//)" >= "300"
|
2007-01-25 05:54:34 -06:00
|
|
|
cd $(PACKAGE_DIR) && $(TYPE:s/+//) $(BACK_PATH)$(PATCH_FILE_NAME) | tr -d "\015" | patch $(PATCHFLAGS) -p2 && $(TOUCH) $(PATCH_FLAG_FILE)
|
2002-06-13 11:55:47 -05:00
|
|
|
.ENDIF # "$(my4ver:s/.//:s/,//)" >= "300"
|
2001-07-17 08:07:46 -05:00
|
|
|
.ELSE # "$(GUI)"=="WNT"
|
2001-11-07 06:23:52 -06:00
|
|
|
.IF "$(BSCLIENT)"=="TRUE"
|
2007-01-25 05:54:34 -06:00
|
|
|
cd $(PACKAGE_DIR) && $(TYPE) $(BACK_PATH)$(PATCH_FILE_NAME) | $(GNUPATCH) -f $(PATCHFLAGS) -p2 && $(TOUCH) $(PATCH_FLAG_FILE)
|
2001-11-07 06:23:52 -06:00
|
|
|
.ELSE # "$(BSCLIENT)"!=""
|
2007-01-25 05:54:34 -06:00
|
|
|
cd $(PACKAGE_DIR) && $(TYPE) $(BACK_PATH)$(PATCH_FILE_NAME) | $(GNUPATCH) $(PATCHFLAGS) -p2 && $(TOUCH) $(PATCH_FLAG_FILE)
|
2001-11-07 06:23:52 -06:00
|
|
|
.ENDIF # "$(BSCLIENT)"!=""
|
2001-07-17 08:07:46 -05:00
|
|
|
.ENDIF # "$(GUI)"=="WNT"
|
2001-06-07 10:59:52 -05:00
|
|
|
.ENDIF # "$(PATCH_FILE_NAME)"=="none" || "$(PATCH_FILE_NAME)"==""
|
2002-04-22 12:15:15 -05:00
|
|
|
.IF "$(T_ADDITIONAL_FILES)"!=""
|
2004-09-20 02:36:06 -05:00
|
|
|
.IF "$(GUI)"=="WNT"
|
|
|
|
# Native W32 tools generate only filedates with even seconds, cygwin also with odd seconds
|
2007-01-25 05:54:34 -06:00
|
|
|
$(DELAY) 2
|
2004-09-20 02:36:06 -05:00
|
|
|
.ENDIF # "$(GUI)"=="WNT"
|
2007-01-25 05:54:34 -06:00
|
|
|
$(TOUCH) $(PACKAGE_DIR)$/$(PATCH_FLAG_FILE)
|
2002-04-22 12:15:15 -05:00
|
|
|
.ENDIF # "$(T_ADDITIONAL_FILES)"!=""
|
2001-06-07 10:59:52 -05:00
|
|
|
|
2004-12-23 02:43:50 -06:00
|
|
|
.IF "$(CONVERTFILES)"!=""
|
|
|
|
$(MISC)$/convert_unx_flag : $(PACKAGE_DIR)$/$(UNTAR_FLAG_FILE)
|
2007-01-25 05:54:34 -06:00
|
|
|
$(CONVERT) unix $(foreach,i,$(CONVERTFILES) $(PACKAGE_DIR)$/$(TARFILE_ROOTDIR)$/$i) && $(TOUCH) $(MISC)$/convert_unx_flag
|
2004-12-23 02:43:50 -06:00
|
|
|
|
|
|
|
$(PACKAGE_DIR)$/$(PATCH_FLAG_FILE) : $(MISC)$/convert_unx_flag
|
|
|
|
|
|
|
|
$(MISC)$/convert_dos_flag : $(PACKAGE_DIR)$/$(PATCH_FLAG_FILE)
|
2007-01-25 05:54:34 -06:00
|
|
|
$(CONVERT) dos $(foreach,i,$(CONVERTFILES) $(PACKAGE_DIR)$/$(TARFILE_ROOTDIR)$/$i) && $(TOUCH) $(MISC)$/convert_dos_flag
|
2004-12-23 02:43:50 -06:00
|
|
|
|
|
|
|
$(PACKAGE_DIR)$/$(CONFIGURE_FLAG_FILE) : $(MISC)$/convert_dos_flag
|
|
|
|
|
2005-01-27 04:10:39 -06:00
|
|
|
patch : $(MISC)$/convert_dos_flag
|
|
|
|
|
2004-12-23 02:43:50 -06:00
|
|
|
.ENDIF # "$(CONVERTFILES)"!=""
|
|
|
|
|
2001-06-07 10:59:52 -05:00
|
|
|
$(PACKAGE_DIR)$/$(CONFIGURE_FLAG_FILE) : $(PACKAGE_DIR)$/$(PATCH_FLAG_FILE)
|
2007-02-06 06:59:24 -06:00
|
|
|
@@-$(RM) $@
|
2001-06-07 10:59:52 -05:00
|
|
|
.IF "$(CONFIGURE_ACTION)" == "none" || "$(CONFIGURE_ACTION)"==""
|
2007-01-25 05:54:34 -06:00
|
|
|
$(TOUCH) $(PACKAGE_DIR)$/$(CONFIGURE_FLAG_FILE)
|
2001-06-07 10:59:52 -05:00
|
|
|
.ELSE # "$(CONFIGURE_ACTION)"=="none" || "$(CONFIGURE_ACTION)"==""
|
2006-10-05 10:35:56 -05:00
|
|
|
-$(MKDIR) $(P_CONFIGURE_DIR)
|
2007-01-25 05:54:34 -06:00
|
|
|
cd $(P_CONFIGURE_DIR) && $(CONFIGURE_ACTION) $(CONFIGURE_FLAGS) && $(TOUCH) $(CONFIGURE_FLAG_FILE)
|
|
|
|
mv $(P_CONFIGURE_DIR)$/$(CONFIGURE_FLAG_FILE) $(PACKAGE_DIR)$/$(CONFIGURE_FLAG_FILE)
|
2001-06-07 10:59:52 -05:00
|
|
|
.ENDIF # "$(CONFIGURE_ACTION)"=="none" || "$(CONFIGURE_ACTION)"==""
|
|
|
|
|
2006-10-05 10:35:56 -05:00
|
|
|
|
2001-06-07 10:59:52 -05:00
|
|
|
$(PACKAGE_DIR)$/$(BUILD_FLAG_FILE) : $(PACKAGE_DIR)$/$(CONFIGURE_FLAG_FILE)
|
2007-02-06 06:59:24 -06:00
|
|
|
@@-$(RM) $@
|
2004-09-20 02:36:06 -05:00
|
|
|
.IF "$(eq,x$(BUILD_ACTION:s/none//)x,xx true false)"=="true"
|
2007-01-25 05:54:34 -06:00
|
|
|
$(TOUCH) $(PACKAGE_DIR)$/$(BUILD_FLAG_FILE)
|
2004-09-20 02:36:06 -05:00
|
|
|
.ELSE # "$(eq,x$(BUILD_ACTION:s/none//)x,xx true false)"=="true"
|
2006-10-05 10:35:56 -05:00
|
|
|
-$(MKDIR) $(P_BUILD_DIR)
|
2007-01-25 05:54:34 -06:00
|
|
|
cd $(P_BUILD_DIR) && $(BUILD_ACTION) $(BUILD_FLAGS) && $(TOUCH) $(ABS_PACKAGE_DIR)$/$(BUILD_FLAG_FILE)
|
2004-09-20 02:36:06 -05:00
|
|
|
.ENDIF # "$(eq,x$(BUILD_ACTION:s/none//)x,xx true false)"=="true"
|
2001-06-07 10:59:52 -05:00
|
|
|
|
2001-07-17 03:58:22 -05:00
|
|
|
$(PACKAGE_DIR)$/$(INSTALL_FLAG_FILE) : $(PACKAGE_DIR)$/$(BUILD_FLAG_FILE)
|
2007-02-06 06:59:24 -06:00
|
|
|
@@-$(RM) $@
|
2001-07-17 03:58:22 -05:00
|
|
|
.IF "$(INSTALL_ACTION)"=="none" || "$(INSTALL_ACTION)"==""
|
2007-01-25 05:54:34 -06:00
|
|
|
$(TOUCH) $(PACKAGE_DIR)$/$(INSTALL_FLAG_FILE)
|
2001-07-17 03:58:22 -05:00
|
|
|
.ELSE # "$(INSTALL_ACTION)"=="none" || "$(INSTALL_ACTION)"==""
|
2006-10-05 10:35:56 -05:00
|
|
|
-$(MKDIR) $(P_INSTALL_DIR)
|
|
|
|
-$(MKDIR) $(P_INSTALL_TARGET_DIR)
|
2007-01-25 05:54:34 -06:00
|
|
|
cd $(P_INSTALL_DIR) && $(INSTALL_ACTION) $(INSTALL_FLAGS) && $(TOUCH) $(INSTALL_FLAG_FILE)
|
|
|
|
mv $(P_INSTALL_DIR)$/$(INSTALL_FLAG_FILE) $(PACKAGE_DIR)$/$(INSTALL_FLAG_FILE)
|
2001-07-17 03:58:22 -05:00
|
|
|
.ENDIF # "$(INSTALL_ACTION)"=="none" || "$(INSTALL_ACTION)"==""
|
|
|
|
|
|
|
|
$(PACKAGE_DIR)$/$(PREDELIVER_FLAG_FILE) : $(PACKAGE_DIR)$/$(INSTALL_FLAG_FILE)
|
2001-06-07 10:59:52 -05:00
|
|
|
.IF "$(OUT2LIB)"!=""
|
2007-01-25 05:54:34 -06:00
|
|
|
$(COPY) $(foreach,i,$(OUT2LIB) $(PACKAGE_DIR)$/$(TARFILE_ROOTDIR)$/$i) $(LB)
|
2001-06-27 06:46:25 -05:00
|
|
|
.ENDIF # "$(OUT2LIB)"!=""
|
2001-06-07 10:59:52 -05:00
|
|
|
.IF "$(OUT2INC)"!=""
|
2003-12-16 04:38:45 -06:00
|
|
|
.IF "$(OUT2INC_SUBDIR)"!=""
|
2006-10-05 10:35:56 -05:00
|
|
|
-$(MKDIR) $(INCCOM)$/$(OUT2INC_SUBDIR)
|
2007-01-25 05:54:34 -06:00
|
|
|
$(COPY) $(foreach,i,$(OUT2INC) $(PACKAGE_DIR)$/$(TARFILE_ROOTDIR)$/$i) $(INCCOM)$/$(OUT2INC_SUBDIR)
|
2003-12-16 04:38:45 -06:00
|
|
|
.ELSE # "$(OUT2INC_SUBDIR)"!=""
|
2007-01-25 05:54:34 -06:00
|
|
|
$(COPY) $(foreach,i,$(OUT2INC) $(PACKAGE_DIR)$/$(TARFILE_ROOTDIR)$/$i) $(INCCOM)
|
2003-12-16 04:38:45 -06:00
|
|
|
.ENDIF # "$(OUT2INC_SUBDIR)"!=""
|
2001-06-27 06:46:25 -05:00
|
|
|
.ENDIF # "$(OUT2INC)"!=""
|
|
|
|
.IF "$(OUTDIR2INC)"!=""
|
2005-09-26 07:22:11 -05:00
|
|
|
.IF "$(USE_SHELL)"=="4nt"
|
2006-10-05 10:35:56 -05:00
|
|
|
@-$(MKDIR) $(foreach,i,$(OUTDIR2INC) $(INCCOM)$/$(i:b))
|
2007-01-25 05:54:34 -06:00
|
|
|
@echo copied $(foreach,i,$(OUTDIR2INC) $(shell $(COPY) $(COPYRECURSE) $(PACKAGE_DIR)$/$(TARFILE_ROOTDIR)$/$i$/* $(INCCOM)$/$(i:b) >& $(NULLDEV) && echo $i))
|
2005-09-26 07:22:11 -05:00
|
|
|
.ELSE # "$(USE_SHELL)"=="4nt"
|
2007-01-25 05:54:34 -06:00
|
|
|
$(COPY) $(COPYRECURSE) $(foreach,i,$(OUTDIR2INC) $(PACKAGE_DIR)$/$(TARFILE_ROOTDIR)$/$i) $(INCCOM)
|
2005-09-26 07:22:11 -05:00
|
|
|
.ENDIF # "$(USE_SHELL)"=="4nt"
|
2001-06-27 06:46:25 -05:00
|
|
|
.ENDIF # "$(OUTDIR2INC)"!=""
|
2001-06-07 10:59:52 -05:00
|
|
|
.IF "$(OUT2BIN)"!=""
|
2007-01-25 05:54:34 -06:00
|
|
|
$(COPY) $(foreach,i,$(OUT2BIN) $(PACKAGE_DIR)$/$(TARFILE_ROOTDIR)$/$i) $(BIN)
|
2001-06-27 06:46:25 -05:00
|
|
|
.ENDIF # "$(OUT2BIN)"!=""
|
2001-06-07 12:34:33 -05:00
|
|
|
.IF "$(OUT2CLASS)"!=""
|
2007-01-25 05:54:34 -06:00
|
|
|
$(COPY) $(foreach,i,$(OUT2CLASS) $(PACKAGE_DIR)$/$(TARFILE_ROOTDIR)$/$i) $(CLASSDIR)
|
2001-06-07 10:59:52 -05:00
|
|
|
.ENDIF # "$(OUT2BIN)"!=""
|
2007-01-25 05:54:34 -06:00
|
|
|
$(TOUCH) $(PACKAGE_DIR)$/$(PREDELIVER_FLAG_FILE)
|
2001-06-07 10:59:52 -05:00
|
|
|
|
2001-10-29 11:26:35 -06:00
|
|
|
$(MISC)$/$(TARFILE_ROOTDIR) : $(MISC)$/$(TARFILE_NAME).unpack
|
2007-01-25 05:54:34 -06:00
|
|
|
@-mv $(MISC)$/$(TARFILE_ROOTDIR) $(MISC)$/$(TARFILE_ROOTDIR).old
|
|
|
|
@-rm -rf $(MISC)$/$(TARFILE_ROOTDIR).old
|
|
|
|
cd $(MISC) && $(subst,$(BACK_PATH),..$/..$/ $(shell $(TYPE) $(PRJ)$/$(ROUT)$/misc$/$(TARFILE_NAME).unpack))
|
2001-06-08 11:05:25 -05:00
|
|
|
.IF "$(GUI)"=="UNX"
|
2007-01-25 05:54:34 -06:00
|
|
|
$(TOUCH) $@
|
2001-06-08 11:05:25 -05:00
|
|
|
.ENDIF # "$(GUI)"=="UNX"
|
|
|
|
|
2001-06-15 08:30:43 -05:00
|
|
|
|
|
|
|
.IF "$(P_ADDITIONAL_FILES)"!=""
|
2001-07-17 03:58:22 -05:00
|
|
|
$(P_ADDITIONAL_FILES) :
|
2007-01-25 05:54:34 -06:00
|
|
|
-echo dummy > $@
|
|
|
|
-$(TOUCH) $@
|
2001-06-15 08:30:43 -05:00
|
|
|
.ENDIF "$(P_ADDITIONAL_FILES)"!=""
|
|
|
|
|
2001-06-15 11:51:48 -05:00
|
|
|
.IF "$(T_ADDITIONAL_FILES)"!=""
|
2004-09-20 02:36:06 -05:00
|
|
|
$(T_ADDITIONAL_FILES:+".dummy") : $(PACKAGE_DIR)$/$(UNTAR_FLAG_FILE)
|
2007-01-25 05:54:34 -06:00
|
|
|
-echo dummy > $@
|
|
|
|
-$(TOUCH) $@
|
|
|
|
-echo dummy > $(@:d)$(@:b)
|
|
|
|
-$(TOUCH) $(@:d)$(@:b)
|
2001-06-15 11:51:48 -05:00
|
|
|
.ENDIF "$(T_ADDITIONAL_FILES)"!=""
|
|
|
|
|
2007-01-22 23:34:24 -06:00
|
|
|
create_patch : $(MISC)$/$(TARFILE_ROOTDIR) $(P_ADDITIONAL_FILES) $(PACKAGE_DIR)$/$(PATCH_FLAG_FILE)
|
2007-02-06 06:59:24 -06:00
|
|
|
@@-$(RM) $(MISC)$/$(NEW_PATCH_FILE_NAME).tmp
|
|
|
|
@@-$(RM) $(NEW_PATCH_FILE_NAME).bak
|
2001-06-08 11:05:25 -05:00
|
|
|
#ignore returncode of 1 (indicates differences...)
|
2001-10-30 09:26:12 -06:00
|
|
|
# hard coded again to get the same directory level as before. quite ugly...
|
2007-01-25 05:54:34 -06:00
|
|
|
-cd $(PRJ)$/$(ROUT) && diff -rc misc$/$(TARFILE_ROOTDIR) misc$/build$/$(TARFILE_ROOTDIR) | $(PERL) $(SOLARENV)$/bin$/cleandiff.pl | tr -d "\015" > misc$/$(NEW_PATCH_FILE_NAME).tmp
|
2007-02-06 06:59:24 -06:00
|
|
|
@@-mv $(NEW_PATCH_FILE_NAME) $(NEW_PATCH_FILE_NAME).bak
|
|
|
|
@@-mv $(MISC)$/$(NEW_PATCH_FILE_NAME).tmp $(PRJ)$/$(NEW_PATCH_FILE_NAME)
|
2007-04-26 07:57:21 -05:00
|
|
|
$(MAKECMD) $(MAKEMACROS) patch
|
2006-10-05 04:40:06 -05:00
|
|
|
@echo still some problems with win32 generated patches...
|
2001-06-08 11:05:25 -05:00
|
|
|
|
|
|
|
create_clean : $(PACKAGE_DIR)$/$(UNTAR_FLAG_FILE)
|
2006-10-05 04:40:06 -05:00
|
|
|
@echo done
|
2001-06-08 11:05:25 -05:00
|
|
|
|
|
|
|
patch : $(PACKAGE_DIR)$/$(PATCH_FLAG_FILE)
|
2006-10-05 04:40:06 -05:00
|
|
|
@echo done
|
2001-06-08 11:05:25 -05:00
|
|
|
|
2001-12-19 05:33:32 -06:00
|
|
|
.ENDIF # "$(L10N_framework)"==""
|