update ooo310-m15
[ooovba.git] / solenv / inc / tg_srs.mk
blobdc686d4893e9690c84f9464c6e419f97a1e214de
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 "$(QUIET_BUILD)"==""
41 @echo ------------------------------
42 .ENDIF
43 @echo "Making: " $(@:f)
44 @-$(RM) $@
45 $(QUIET_BUILD) $(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: $(SRC$(TNR)FILES) $(HIDSRS$(TNR)PARTICLE) $(HID$(TNR)FILES)
53 .IF "$(QUIET_BUILD)"==""
54 @echo ------------------------------
55 .ENDIF
56 @echo "Making: " $(@:f)
57 @@-$(RM) $(MISC)$/$(TARGET).$(SRS$(TNR)NAME).dprr
58 $(QUIET_BUILD) $(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)"!=""
61 $(foreach,i,$(SRC$(TNR)FILES) $(COMMONMISC)$/$(TARGET)$/$i) : $$(@:f) localize.sdf
62 .IF "$(QUIET_BUILD)"==""
63 @-$(MKDIR) $(@:d)
64 @-$(RM) $@
65 $(TRANSEX) -p $(PRJNAME) -i $(@:f) -o $(@).$(INPATH) -m localize.sdf -l all
66 .ELSE
67 @-$(MKDIR) $(@:d) $(PIPEERROR) cat - > /dev/null
68 @-$(RM) $@
69 @ $(TRANSEX) -QQ -p $(PRJNAME) -i $(@:f) -o $(@).$(INPATH) -m localize.sdf -l all
70 .ENDIF
71 @$(RENAME) $@.$(INPATH) $@
72 @-$(RM) $@.$(INPATH)
74 $(SRS)$/$(SRS$(TNR)NAME).srs: $(foreach,i,$(SRC$(TNR)FILES) $(COMMONMISC)$/$(TARGET)$/$i)
75 .ELSE # "$(WITH_LANG)"!=""
76 $(SRS)$/$(SRS$(TNR)NAME).srs: $(SRC$(TNR)FILES)
77 .ENDIF # "$(WITH_LANG)"!=""
78 .IF "$(QUIET_BUILD)"==""
79 @echo ------------------------------
80 .ENDIF
81 @echo "Making: " $(@:f)
82 .IF "$(QUIET_BUILD)"==""
83 $(RSC) -presponse @$(mktmp \
84 $(SRSDEFAULT) $(RSC_SRS_CHARSET) $(RSCFLAGS) -I$(RSCEXTINC) \
85 $(INCLUDE) $(RSCDEFS) $(RSCUPDVERDEF) \
86 -fp=$@.$(INPATH) \
87 $< \
89 .ELSE
90 @ $(RSC) -presponse @$(mktmp \
91 $(SRSDEFAULT) $(RSC_SRS_CHARSET) $(RSCFLAGS) -I$(RSCEXTINC) \
92 $(INCLUDE) $(RSCDEFS) $(RSCUPDVERDEF) \
93 -fp=$@.$(INPATH) \
94 $< \
95 ) $(PIPEERROR) cat - > /dev/null
96 .ENDIF
97 @-$(RM) $@
98 @$(RENAME) $@.$(INPATH) $@
99 @-$(RM) $@.$(INPATH)
101 .ENDIF # "$(SRS$(TNR)NAME)"!=""
103 # unroll end
104 #######################################################