merge the formfield patch from ooo-build
[ooovba.git] / solenv / inc / tg_srs.mk
blobc832939c70762feb96114ad660d045bbae087b79
1 #*************************************************************************
3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 #
5 # Copyright 2008 by Sun Microsystems, Inc.
7 # OpenOffice.org - a multi-platform office productivity suite
9 # $RCSfile: tg_srs.mk,v $
11 # $Revision: 1.26.164.1 $
13 # This file is part of OpenOffice.org.
15 # OpenOffice.org is free software: you can redistribute it and/or modify
16 # it under the terms of the GNU Lesser General Public License version 3
17 # only, as published by the Free Software Foundation.
19 # OpenOffice.org is distributed in the hope that it will be useful,
20 # but WITHOUT ANY WARRANTY; without even the implied warranty of
21 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22 # GNU Lesser General Public License version 3 for more details
23 # (a copy is included in the LICENSE file that accompanied this code).
25 # You should have received a copy of the GNU Lesser General Public License
26 # version 3 along with OpenOffice.org. If not, see
27 # <http://www.openoffice.org/license.html>
28 # for a copy of the LGPLv3 License.
30 #*************************************************************************
32 #######################################################
33 # unroll begin
35 .IF "$(SRS$(TNR)NAME)"!=""
36 .IF "$(BUILDHIDS)"!=""
37 HID$(TNR)FILES=$(foreach,i,$(SRC$(TNR)FILES:f) $(SRS)/$(i:s/.src/.hid/))
38 HIDSRS$(TNR)PARTICLE=$(subst,$(OUTPATH),$(COMMON_OUTDIR) $(SRS))/$(SRS$(TNR)NAME)_srs.hid
39 $(HIDSRS$(TNR)PARTICLE) : $(HID$(TNR)FILES)
40 .IF "$(VERBOSE)" == "TRUE"
41 @echo ------------------------------
42 .ENDIF
43 @echo "Making: " $(@:f)
44 @-$(RM) $@
45 $(COMMAND_ECHO)$(TYPE) $(mktmp $(subst,/,/ $(HID$(TNR)FILES))) | xargs -s 1000 cat > $@.$(ROUT).tmp
46 @$(RENAME) $@.$(ROUT).tmp $@
48 ALLTAR : $(HIDSRS$(TNR)PARTICLE)
50 .ENDIF # "$(BUILDHIDS)"!=""
52 $(MISC)/$(TARGET).$(SRS$(TNR)NAME).dprr: $(LOCALIZE_ME_DEST)
54 $(MISC)/$(TARGET).$(SRS$(TNR)NAME).dprr: $(SRC$(TNR)FILES) $(HIDSRS$(TNR)PARTICLE) $(HID$(TNR)FILES)
55 @echo ------------------------------
56 @echo Making: $@
57 @@-$(RM) $(MISC)/$(TARGET).$(SRS$(TNR)NAME).dprr
58 $(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=$@ -p=$(TARGET) $(SRC$(TNR)FILES)
60 .IF "$(WITH_LANG)"!=""
62 $(foreach,i,$(SRC$(TNR)FILES) $(COMMONMISC)/$(TARGET)/$i) : $$(@:f) $(LOCALIZESDF)
63 -$(MKDIR) $(@:d)
64 -$(RM) $@
65 -$(MKDIRHIER) $(SOLARSRC)/$(PRJNAME)/common$(PROEXT)/misc/$(PRJNAME)
66 $(WRAPCMD) $(TRANSEX) -p $(PRJNAME) -i $(@:f) -o $(@).$(INPATH) -m $(LOCALIZESDF) -l all
67 $(RENAME) $@.$(INPATH) $@
68 -$(RM) $@.$(INPATH)
70 $(SRS)/$(SRS$(TNR)NAME).srs: $(LOCALIZE_ME_DEST)
72 $(SRS)/$(SRS$(TNR)NAME).srs: $(foreach,i,$(SRC$(TNR)FILES) $(COMMONMISC)/$(TARGET)/$i)
73 .ELSE # "$(WITH_LANG)"!=""
74 $(SRS)/$(SRS$(TNR)NAME).srs: $(SRC$(TNR)FILES)
75 .ENDIF # "$(WITH_LANG)"!=""
76 @echo ------------------------------
77 @echo Making: $@
78 $(RSC) -presponse @$(mktmp \
79 $(SRSDEFAULT) $(RSC_SRS_CHARSET) $(RSCFLAGS) -I$(RSCEXTINC) \
80 $(INCLUDE) $(RSCDEFS) $(RSCUPDVERDEF) \
81 -fp=$@.$(INPATH) \
82 $< \
84 -$(RM) $@
85 $(RENAME) $@.$(INPATH) $@
86 -$(RM) $@.$(INPATH)
88 .ENDIF # "$(SRS$(TNR)NAME)"!=""
90 # unroll end
91 #######################################################