1 #*************************************************************************
3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
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 #######################################################
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
------------------------------
43 @echo
"Making: " $(@
:f
)
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
------------------------------
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
)
65 -$(MKDIRHIER
) $(SOLARSRC
)/$(PRJNAME
)/common
$(PROEXT
)/misc
/$(PRJNAME
)
66 $(WRAPCMD
) $(TRANSEX
) -p
$(PRJNAME
) -i
$(@
:f
) -o
$(@
).
$(INPATH
) -m
$(LOCALIZESDF
) -l
all
67 $(RENAME
) $@.
$(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
------------------------------
78 $(RSC
) -presponse @
$(mktmp \
79 $(SRSDEFAULT
) $(RSC_SRS_CHARSET
) $(RSCFLAGS
) -I
$(RSCEXTINC
) \
80 $(INCLUDE
) $(RSCDEFS
) $(RSCUPDVERDEF
) \
85 $(RENAME
) $@.
$(INPATH
) $@
88 .ENDIF
# "$(SRS$(TNR)NAME)"!=""
91 #######################################################