xref: /aoo42x/main/solenv/inc/tg_srs.mk (revision 7871dc3e)
1#**************************************************************
2#
3#  Licensed to the Apache Software Foundation (ASF) under one
4#  or more contributor license agreements.  See the NOTICE file
5#  distributed with this work for additional information
6#  regarding copyright ownership.  The ASF licenses this file
7#  to you under the Apache License, Version 2.0 (the
8#  "License"); you may not use this file except in compliance
9#  with the License.  You may obtain a copy of the License at
10#
11#    http://www.apache.org/licenses/LICENSE-2.0
12#
13#  Unless required by applicable law or agreed to in writing,
14#  software distributed under the License is distributed on an
15#  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16#  KIND, either express or implied.  See the License for the
17#  specific language governing permissions and limitations
18#  under the License.
19#
20#**************************************************************
21
22
23
24#######################################################
25# unroll begin
26
27.IF "$(SRS$(TNR)NAME)"!=""
28
29$(MISC)/$(TARGET).$(SRS$(TNR)NAME).dprr: $(LOCALIZE_ME_DEST)
30
31$(MISC)/$(TARGET).$(SRS$(TNR)NAME).dprr: $(SRC$(TNR)FILES)
32	@echo "Making:   " $(@:f)
33	@@-$(RM) $(MISC)/$(TARGET).$(SRS$(TNR)NAME).dprr
34	$(COMMAND_ECHO)$(RSC) $(VERBOSITY) $(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)
35
36.IF "$(WITH_LANG)"!=""
37
38$(foreach,i,$(SRC$(TNR)FILES) $(COMMONMISC)/$(TARGET)/$i) : $$(@:f) $(LOCALIZESDF)
39	@echo "Making:   " $(@:f)
40	$(COMMAND_ECHO)-$(MKDIR) $(@:d)
41    $(COMMAND_ECHO)-$(RM) $@
42	$(COMMAND_ECHO)-$(MKDIRHIER)  $(COMMONMISC)$/$(PRJNAME)
43	$(COMMAND_ECHO)$(WRAPCMD) $(TRANSEX) -p $(PRJNAME) -i $(@:f) -o $(@).$(INPATH) -m $(LOCALIZESDF) -l all
44    $(COMMAND_ECHO)$(RENAME) $@.$(INPATH) $@
45    $(COMMAND_ECHO)-$(RM) $@.$(INPATH)
46
47$(SRS)/$(SRS$(TNR)NAME).srs: $(LOCALIZE_ME_DEST)
48
49$(SRS)/$(SRS$(TNR)NAME).srs: $(foreach,i,$(SRC$(TNR)FILES) $(COMMONMISC)/$(TARGET)/$i)
50.ELSE			# "$(WITH_LANG)"!=""
51$(SRS)/$(SRS$(TNR)NAME).srs: $(SRC$(TNR)FILES)
52.ENDIF			# "$(WITH_LANG)"!=""
53	@echo "Making:   " $(@:f)
54	$(COMMAND_ECHO)$(RSC) -presponse $(VERBOSITY) @$(mktmp \
55		$(SRSDEFAULT) $(RSC_SRS_CHARSET) $(RSCFLAGS) -I$(RSCEXTINC) \
56		$(INCLUDE) $(RSCDEFS) $(RSCUPDVERDEF) \
57		-fp=$@.$(INPATH) \
58		$< \
59	)
60	$(COMMAND_ECHO)-$(RM) $@
61	$(COMMAND_ECHO)$(RENAME) $@.$(INPATH) $@
62	$(COMMAND_ECHO)-$(RM) $@.$(INPATH)
63
64.ENDIF          # "$(SRS$(TNR)NAME)"!=""
65
66# unroll end
67#######################################################
68
69
70