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# to make it usable with special lang selection of 25# helpcontent2 26 27aux_alllangiso*:=$(alllangiso) 28 29SHELL_PACKAGE:=$(subst,/,$/ $(PACKAGE)) 30 31.IF "$(XHPDEST)"=="" 32XHPDEST*:=$(COMMONMISC) 33HELP_OUT:=$(COMMONMISC) 34.ELSE # "$(XHPDEST)"=="" 35HELP_OUT:=$(MISC) 36.ENDIF # "$(XHPDEST)"=="" 37 38HLANGXHPFILES*:=$(foreach,i,$(XHPFILES) $(foreach,j,$(aux_alllangiso) $(XHPDEST)$/$j$/$(SHELL_PACKAGE)$/$(i:f))) 39 40ALLTAR : $(HELP_OUT)$/$(TARGET).done $(HELP_OUT)$/xhp_changed.flag optix 41 42$(HLANGXHPFILES) : $$(@:d)thisdir.created 43 44$(XHPDEST)$/{$(aux_alllangiso)}$/$(SHELL_PACKAGE)$/%.xhp :| %.xhp 45 @$(TOUCH) $@ 46# internal dependencies not sufficient to trigger merge? 47# @$(NULL) 48 49 50$(HELP_OUT)$/$(TARGET).done : $(HLANGXHPFILES) 51.IF "$(WITH_LANG)"!="" 52 $(AUGMENT_LIBRARY_PATH) $(HELPEX) -p $(PRJNAME) -r $(PRJ) -i @$(mktmp $(uniq $(foreach,i,$? $(!eq,$(i:f),$(i:f:s/.xhp//) $(i:f) $(XHPFILES))))) -x $(XHPDEST) -y $(SHELL_PACKAGE) -l all -lf $(aux_alllangiso:t",") -m $(LOCALIZESDF) && $(TOUCH) $@ 53.ELSE # "$(WITH_LANG)"!="" 54 cp $(uniq $(foreach,i,$? $(!eq,$(i:f),$(i:f:s/.xhp//) $(i:f) $(XHPFILES)))) $(XHPDEST)$/en-US$/$(SHELL_PACKAGE) && $(TOUCH) $@ 55.ENDIF # "$(WITH_LANG)"!="" 56.IF "$(OS)"=="SOLARIS" 57 @$(ECHONL) " " 58.ELSE # "$(OS)"=="SOLARIS" 59 @$(ECHONL) 60.ENDIF # "$(OS)"=="SOLARIS" 61 62$(HELP_OUT)$/xhp_changed.flag : $(HLANGXHPFILES) 63 @$(TOUCH) $@ 64 65# urks - dmake mixes up operators and strings :-( 66.IF "$(HLANGXHPFILES:s/defined/xxx/)"!="" 67 68.IF "$(HELPTRANSPHONY)"!="" 69$(HELP_OUT)$/$(TARGET).done .PHONY : 70.ELSE # "$(HELPTRANSPHONY)"!="" 71 72$(HELP_OUT)$/$(TARGET).done : makefile.mk 73.IF "$(WITH_LANG)"!="" 74$(HELP_OUT)$/$(TARGET).done : $(LOCALIZESDF) 75.ENDIF # "$(WITH_LANG)"!="" 76.ENDIF # "$(HELPTRANSPHONY)"!="" 77.ENDIF # "$(HLANGXHPFILES)"!="" 78 79optix: $(HELP_OUT)$/$(TARGET).done 80 @echo done 81 82%.created : 83 @@-$(MKDIRHIER) $(@:d) 84 @$(TOUCH) $@ 85 86 87