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 @echo
------------------------------
43 $(TYPE
) $(mktmp
$(subst,/,/ $(HID
$(TNR
)FILES
))) | xargs
-s
1000 cat
> $@.
$(ROUT
).tmp
44 @
$(RENAME
) $@.
$(ROUT
).tmp
$@
46 ALLTAR
: $(HIDSRS
$(TNR
)PARTICLE
)
48 .ENDIF
# "$(BUILDHIDS)"!=""
50 $(MISC
)/$(TARGET
).
$(SRS
$(TNR
)NAME
).dprr
: $(LOCALIZE_ME_DEST
)
52 $(MISC
)/$(TARGET
).
$(SRS
$(TNR
)NAME
).dprr
: $(SRC
$(TNR
)FILES
) $(HIDSRS
$(TNR
)PARTICLE
) $(HID
$(TNR
)FILES
)
53 @echo
------------------------------
55 @@
-$(RM
) $(MISC
)/$(TARGET
).
$(SRS
$(TNR
)NAME
).dprr
56 $(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
)
58 .IF
"$(WITH_LANG)"!=""
60 $(foreach,i
,$(SRC
$(TNR
)FILES
) $(COMMONMISC
)/$(TARGET
)/$i) : $$(@
:f
) $(LOCALIZESDF
)
63 -$(MKDIRHIER
) $(SOLARSRC
)/$(PRJNAME
)/common
$(PROEXT
)/misc
/$(PRJNAME
)
64 $(WRAPCMD
) $(TRANSEX
) -p
$(PRJNAME
) -i
$(@
:f
) -o
$(@
).
$(INPATH
) -m
$(LOCALIZESDF
) -l
all
65 $(RENAME
) $@.
$(INPATH
) $@
68 $(SRS
)/$(SRS
$(TNR
)NAME
).srs
: $(LOCALIZE_ME_DEST
)
70 $(SRS
)/$(SRS
$(TNR
)NAME
).srs
: $(foreach,i
,$(SRC
$(TNR
)FILES
) $(COMMONMISC
)/$(TARGET
)/$i)
71 .ELSE
# "$(WITH_LANG)"!=""
72 $(SRS
)/$(SRS
$(TNR
)NAME
).srs
: $(SRC
$(TNR
)FILES
)
73 .ENDIF
# "$(WITH_LANG)"!=""
74 @echo
------------------------------
76 $(RSC
) -presponse @
$(mktmp \
77 $(SRSDEFAULT
) $(RSC_SRS_CHARSET
) $(RSCFLAGS
) -I
$(RSCEXTINC
) \
78 $(INCLUDE
) $(RSCDEFS
) $(RSCUPDVERDEF
) \
83 $(RENAME
) $@.
$(INPATH
) $@
86 .ENDIF
# "$(SRS$(TNR)NAME)"!=""
89 #######################################################