2003-04-28 10:45:51 -05:00
|
|
|
#*************************************************************************
|
|
|
|
#
|
2005-09-08 03:49:36 -05:00
|
|
|
# OpenOffice.org - a multi-platform office productivity suite
|
2003-04-28 10:45:51 -05:00
|
|
|
#
|
2005-09-08 03:49:36 -05:00
|
|
|
# $RCSfile: tg_srs.mk,v $
|
2003-04-28 10:45:51 -05:00
|
|
|
#
|
2008-03-05 09:33:58 -06:00
|
|
|
# $Revision: 1.25 $
|
2003-04-28 10:45:51 -05:00
|
|
|
#
|
2008-03-05 09:33:58 -06:00
|
|
|
# last change: $Author: kz $ $Date: 2008-03-05 16:33:58 $
|
2003-04-28 10:45:51 -05:00
|
|
|
#
|
2005-09-08 03:49:36 -05:00
|
|
|
# The Contents of this file are made available subject to
|
|
|
|
# the terms of GNU Lesser General Public License Version 2.1.
|
2003-04-28 10:45:51 -05:00
|
|
|
#
|
|
|
|
#
|
2005-09-08 03:49:36 -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
|
2003-04-28 10:45:51 -05:00
|
|
|
#
|
2005-09-08 03:49:36 -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.
|
2003-04-28 10:45:51 -05:00
|
|
|
#
|
2005-09-08 03:49:36 -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.
|
2003-04-28 10:45:51 -05:00
|
|
|
#
|
2005-09-08 03:49:36 -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
|
2003-04-28 10:45:51 -05:00
|
|
|
#
|
|
|
|
#*************************************************************************
|
|
|
|
|
2003-08-25 09:40:47 -05:00
|
|
|
#######################################################
|
|
|
|
# unroll begin
|
|
|
|
|
|
|
|
.IF "$(SRS$(TNR)NAME)"!=""
|
|
|
|
.IF "$(BUILDHIDS)"!=""
|
2003-04-29 11:34:38 -05:00
|
|
|
HID$(TNR)FILES=$(foreach,i,$(SRC$(TNR)FILES:f) $(SRS)$/$(i:s/.src/.hid/))
|
2003-08-25 09:40:47 -05:00
|
|
|
HIDSRS$(TNR)PARTICLE=$(subst,$(OUTPATH),$(COMMON_OUTDIR) $(SRS))$/$(SRS$(TNR)NAME)_srs.hid
|
2003-04-29 11:34:38 -05:00
|
|
|
$(HIDSRS$(TNR)PARTICLE) : $(HID$(TNR)FILES)
|
2005-06-20 08:52:26 -05:00
|
|
|
@echo ------------------------------
|
|
|
|
@echo Making: $@
|
2007-01-25 05:57:38 -06:00
|
|
|
@-$(RM) $@
|
|
|
|
$(TYPE) $(mktmp $(subst,$/,/ $(HID$(TNR)FILES))) | xargs -s 1000 cat > $@.$(ROUT).tmp
|
|
|
|
@$(RENAME) $@.$(ROUT).tmp $@
|
2003-04-29 11:34:38 -05:00
|
|
|
|
2003-08-25 09:40:47 -05:00
|
|
|
ALLTAR : $(HIDSRS$(TNR)PARTICLE)
|
|
|
|
|
|
|
|
.ENDIF # "$(BUILDHIDS)"!=""
|
2003-04-29 11:34:38 -05:00
|
|
|
|
2003-08-25 09:40:47 -05:00
|
|
|
$(MISC)$/$(PWD:f).$(SRS$(TNR)NAME).dprr: $(SRC$(TNR)FILES) $(HIDSRS$(TNR)PARTICLE) $(HID$(TNR)FILES)
|
|
|
|
@echo ------------------------------
|
|
|
|
@echo Making: $@
|
2007-02-06 07:01:41 -06:00
|
|
|
@@-$(RM) $(MISC)$/$(PWD:f).$(SRS$(TNR)NAME).dprr
|
2007-01-25 05:57:38 -06:00
|
|
|
$(RSC) $(SRSDEFAULT) $(RSC_SRS_CHARSET) $(RSCFLAGS) -I$(RSCEXTINC) -I$(INCLOCPRJ) -I$(INCLOCAL) -I$(INC) -I$(INCCOM) $(RSCDEFS) $(RSCUPDVERDEF) -fp={$(SRS)$/$(SRS$(TNR)NAME).srs} -fo=$@ $(SRC$(TNR)FILES)
|
2004-06-25 10:13:57 -05:00
|
|
|
|
2006-11-08 05:04:23 -06:00
|
|
|
.IF "$(WITH_LANG)"!=""
|
2004-11-19 04:42:59 -06:00
|
|
|
$(foreach,i,$(SRC$(TNR)FILES) $(COMMONMISC)$/$(TARGET)$/$i) : $$(@:f) localize.sdf
|
2006-10-05 10:22:10 -05:00
|
|
|
-$(MKDIR) $(@:d)
|
2007-01-25 05:57:38 -06:00
|
|
|
-$(RM) $@
|
2008-03-05 09:33:58 -06:00
|
|
|
$(TRANSEX) -p $(PRJNAME) -i $(@:f) -o $(@).$(INPATH) -m localize.sdf -l all
|
2007-01-25 05:57:38 -06:00
|
|
|
$(RENAME) $@.$(INPATH) $@
|
|
|
|
-$(RM) $@.$(INPATH)
|
2004-06-25 10:13:57 -05:00
|
|
|
|
2004-11-19 04:42:59 -06:00
|
|
|
$(SRS)$/$(SRS$(TNR)NAME).srs: $(foreach,i,$(SRC$(TNR)FILES) $(COMMONMISC)$/$(TARGET)$/$i)
|
2006-11-08 05:04:23 -06:00
|
|
|
.ELSE # "$(WITH_LANG)"!=""
|
|
|
|
$(SRS)$/$(SRS$(TNR)NAME).srs: $(SRC$(TNR)FILES)
|
|
|
|
.ENDIF # "$(WITH_LANG)"!=""
|
2004-06-25 10:13:57 -05:00
|
|
|
@echo ------------------------------
|
|
|
|
@echo Making: $@
|
2007-01-25 05:57:38 -06:00
|
|
|
$(RSC) -presponse @$(mktmp \
|
2004-06-25 10:13:57 -05:00
|
|
|
$(SRSDEFAULT) $(RSC_SRS_CHARSET) $(RSCFLAGS) -I$(RSCEXTINC) \
|
|
|
|
$(INCLUDE) $(RSCDEFS) $(RSCUPDVERDEF) \
|
2004-07-14 01:33:03 -05:00
|
|
|
-fp=$@.$(INPATH) \
|
2006-11-08 05:04:23 -06:00
|
|
|
$< \
|
2004-06-25 10:13:57 -05:00
|
|
|
)
|
2007-01-25 05:57:38 -06:00
|
|
|
-$(RM) $@
|
|
|
|
$(RENAME) $@.$(INPATH) $@
|
|
|
|
-$(RM) $@.$(INPATH)
|
2000-09-20 08:43:26 -05:00
|
|
|
|
2003-08-25 09:40:47 -05:00
|
|
|
.ENDIF # "$(SRS$(TNR)NAME)"!=""
|
2000-09-20 08:43:26 -05:00
|
|
|
|
2003-08-25 09:40:47 -05:00
|
|
|
# unroll end
|
|
|
|
#######################################################
|
2000-09-20 08:43:26 -05:00
|
|
|
|
|
|
|
|