xref: /aoo42x/main/helpcontent2/util/target.pmk (revision 752c0af7)
1*e6b7d829SAndrew Rist#**************************************************************
2*e6b7d829SAndrew Rist#
3*e6b7d829SAndrew Rist#  Licensed to the Apache Software Foundation (ASF) under one
4*e6b7d829SAndrew Rist#  or more contributor license agreements.  See the NOTICE file
5*e6b7d829SAndrew Rist#  distributed with this work for additional information
6*e6b7d829SAndrew Rist#  regarding copyright ownership.  The ASF licenses this file
7*e6b7d829SAndrew Rist#  to you under the Apache License, Version 2.0 (the
8*e6b7d829SAndrew Rist#  "License"); you may not use this file except in compliance
9*e6b7d829SAndrew Rist#  with the License.  You may obtain a copy of the License at
10*e6b7d829SAndrew Rist#
11*e6b7d829SAndrew Rist#    http://www.apache.org/licenses/LICENSE-2.0
12*e6b7d829SAndrew Rist#
13*e6b7d829SAndrew Rist#  Unless required by applicable law or agreed to in writing,
14*e6b7d829SAndrew Rist#  software distributed under the License is distributed on an
15*e6b7d829SAndrew Rist#  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16*e6b7d829SAndrew Rist#  KIND, either express or implied.  See the License for the
17*e6b7d829SAndrew Rist#  specific language governing permissions and limitations
18*e6b7d829SAndrew Rist#  under the License.
19*e6b7d829SAndrew Rist#
20*e6b7d829SAndrew Rist#**************************************************************
21*e6b7d829SAndrew Rist
22*e6b7d829SAndrew Rist
23cdf0e10cSrcweir
24cdf0e10cSrcweirLINKALLTARGETS=$(foreach,i,$(aux_alllangiso) $(COMMONBIN)$/$(LINKNAME)_$i.zip)
25cdf0e10cSrcweirLINKALLADDEDDEPS=$(foreach,i,$(aux_alllangiso) $(subst,LANGUAGE,$i $(LINKADDEDDPES)))
26cdf0e10cSrcweir
27cdf0e10cSrcweirALLTAR : $(LINKALLTARGETS)
28cdf0e10cSrcweir
29cdf0e10cSrcweirXSL_DIR*:=$(SOLARBINDIR)
30cdf0e10cSrcweir
31cdf0e10cSrcweir$(LINKALLTARGETS) : $(foreach,i,$(LINKLINKFILES) $(COMMONMISC)$/$$(@:b:s/_/./:e:s/.//)/$i) $(subst,LANGUAGE,$$(@:b:s/_/./:e:s/.//) $(LINKADDEDDEPS)) $(COMMONMISC)$/xhp_changed.flag
32cdf0e10cSrcweir	$(HELPLINKER) @$(mktmp -mod $(LINKNAME) -src $(COMMONMISC) -sty $(XSL_DIR)/embed.xsl -zipdir $(MISC)$/ziptmp$(@:b) -idxcaption $(XSL_DIR)/idxcaption.xsl -idxcontent $(XSL_DIR)/idxcontent.xsl -lang {$(subst,$(LINKNAME)_, $(@:b))} $(subst,LANGUAGE,{$(subst,$(LINKNAME)_, $(@:b))} $(LINKADDEDFILES)) $(foreach,i,$(LINKLINKFILES) $(COMMONMISC)$/{$(subst,$(LINKNAME)_, $(@:b))}/$i) -o $@.$(INPATH))
33cdf0e10cSrcweir.IF "$(SOLAR_JAVA)" == "TRUE"
34cdf0e10cSrcweir.IF "$(CHECK_LUCENCE_INDEXER_OUTPUT)" == ""
35cdf0e10cSrcweir	$(JAVAI) $(JAVAIFLAGS) $(JAVA_LIBRARY_PATH) -cp "$(my_cp)" com.sun.star.help.HelpIndexerTool -lang $(@:b:s/_/./:e:s/.//) -mod $(LINKNAME) -zipdir $(MISC)$/ziptmp$(@:b) -o $@.$(INPATH)
36cdf0e10cSrcweir.ELSE
37cdf0e10cSrcweir	$(JAVAI) $(JAVAIFLAGS) $(JAVA_LIBRARY_PATH) -cp "$(my_cp)" com.sun.star.help.HelpIndexerTool -lang $(@:b:s/_/./:e:s/.//) -mod $(LINKNAME) -zipdir $(MISC)$/ziptmp$(@:b) -o $@.$(INPATH) -checkcfsandsegname _0 _3
38cdf0e10cSrcweir.ENDIF
39cdf0e10cSrcweir   $(RENAME) $@.$(INPATH) $@
40cdf0e10cSrcweir.ELSE
41cdf0e10cSrcweir	-$(RM) $(MISC)$/ziptmp$(@:b)$/content/*.*
42cdf0e10cSrcweir	-$(RM) $(MISC)$/ziptmp$(@:b)$/caption/*.*
43cdf0e10cSrcweir	zip -j -D $@.$(INPATH) $(MISC)$/ziptmp$(@:b)$/*
44cdf0e10cSrcweir    $(RENAME) $@.$(INPATH) $@
45cdf0e10cSrcweir	-$(RM) $(MISC)$/ziptmp$(@:b)$/*.*
46cdf0e10cSrcweir.ENDIF
47