1*cdf0e10cSrcweir#************************************************************************* 2*cdf0e10cSrcweir# 3*cdf0e10cSrcweir# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4*cdf0e10cSrcweir# 5*cdf0e10cSrcweir# Copyright 2000, 2010 Oracle and/or its affiliates. 6*cdf0e10cSrcweir# 7*cdf0e10cSrcweir# OpenOffice.org - a multi-platform office productivity suite 8*cdf0e10cSrcweir# 9*cdf0e10cSrcweir# This file is part of OpenOffice.org. 10*cdf0e10cSrcweir# 11*cdf0e10cSrcweir# OpenOffice.org is free software: you can redistribute it and/or modify 12*cdf0e10cSrcweir# it under the terms of the GNU Lesser General Public License version 3 13*cdf0e10cSrcweir# only, as published by the Free Software Foundation. 14*cdf0e10cSrcweir# 15*cdf0e10cSrcweir# OpenOffice.org is distributed in the hope that it will be useful, 16*cdf0e10cSrcweir# but WITHOUT ANY WARRANTY; without even the implied warranty of 17*cdf0e10cSrcweir# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18*cdf0e10cSrcweir# GNU Lesser General Public License version 3 for more details 19*cdf0e10cSrcweir# (a copy is included in the LICENSE file that accompanied this code). 20*cdf0e10cSrcweir# 21*cdf0e10cSrcweir# You should have received a copy of the GNU Lesser General Public License 22*cdf0e10cSrcweir# version 3 along with OpenOffice.org. If not, see 23*cdf0e10cSrcweir# <http://www.openoffice.org/license.html> 24*cdf0e10cSrcweir# for a copy of the LGPLv3 License. 25*cdf0e10cSrcweir# 26*cdf0e10cSrcweir#************************************************************************* 27*cdf0e10cSrcweir 28*cdf0e10cSrcweir# to make it usable with special lang selection of 29*cdf0e10cSrcweir# helpcontent2 30*cdf0e10cSrcweir 31*cdf0e10cSrcweiraux_alllangiso*:=$(alllangiso) 32*cdf0e10cSrcweir 33*cdf0e10cSrcweirSHELL_PACKAGE:=$(subst,/,$/ $(PACKAGE)) 34*cdf0e10cSrcweir 35*cdf0e10cSrcweir.IF "$(XHPDEST)"=="" 36*cdf0e10cSrcweirXHPDEST*:=$(COMMONMISC) 37*cdf0e10cSrcweirHELP_OUT:=$(COMMONMISC) 38*cdf0e10cSrcweir.ELSE # "$(XHPDEST)"=="" 39*cdf0e10cSrcweirHELP_OUT:=$(MISC) 40*cdf0e10cSrcweir.ENDIF # "$(XHPDEST)"=="" 41*cdf0e10cSrcweir 42*cdf0e10cSrcweirHLANGXHPFILES*:=$(foreach,i,$(XHPFILES) $(foreach,j,$(aux_alllangiso) $(XHPDEST)$/$j$/$(SHELL_PACKAGE)$/$(i:f))) 43*cdf0e10cSrcweir 44*cdf0e10cSrcweirALLTAR : $(HELP_OUT)$/$(TARGET).done $(HELP_OUT)$/xhp_changed.flag optix 45*cdf0e10cSrcweir 46*cdf0e10cSrcweir$(HLANGXHPFILES) : $$(@:d)thisdir.created 47*cdf0e10cSrcweir 48*cdf0e10cSrcweir$(XHPDEST)$/{$(aux_alllangiso)}$/$(SHELL_PACKAGE)$/%.xhp :| %.xhp 49*cdf0e10cSrcweir @$(TOUCH) $@ 50*cdf0e10cSrcweir# internal dependencies not sufficient to trigger merge? 51*cdf0e10cSrcweir# @$(NULL) 52*cdf0e10cSrcweir 53*cdf0e10cSrcweir 54*cdf0e10cSrcweir$(HELP_OUT)$/$(TARGET).done : $(HLANGXHPFILES) 55*cdf0e10cSrcweir.IF "$(WITH_LANG)"!="" 56*cdf0e10cSrcweir $(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) $@ 57*cdf0e10cSrcweir.ELSE # "$(WITH_LANG)"!="" 58*cdf0e10cSrcweir cp $(uniq $(foreach,i,$? $(!eq,$(i:f),$(i:f:s/.xhp//) $(i:f) $(XHPFILES)))) $(XHPDEST)$/en-US$/$(SHELL_PACKAGE) && $(TOUCH) $@ 59*cdf0e10cSrcweir.ENDIF # "$(WITH_LANG)"!="" 60*cdf0e10cSrcweir.IF "$(OS)"=="SOLARIS" 61*cdf0e10cSrcweir @$(ECHONL) " " 62*cdf0e10cSrcweir.ELSE # "$(OS)"=="SOLARIS" 63*cdf0e10cSrcweir @$(ECHONL) 64*cdf0e10cSrcweir.ENDIF # "$(OS)"=="SOLARIS" 65*cdf0e10cSrcweir 66*cdf0e10cSrcweir$(HELP_OUT)$/xhp_changed.flag : $(HLANGXHPFILES) 67*cdf0e10cSrcweir @$(TOUCH) $@ 68*cdf0e10cSrcweir 69*cdf0e10cSrcweir# urks - dmake mixes up operators and strings :-( 70*cdf0e10cSrcweir.IF "$(HLANGXHPFILES:s/defined/xxx/)"!="" 71*cdf0e10cSrcweir 72*cdf0e10cSrcweir.IF "$(HELPTRANSPHONY)"!="" 73*cdf0e10cSrcweir$(HELP_OUT)$/$(TARGET).done .PHONY : 74*cdf0e10cSrcweir.ELSE # "$(HELPTRANSPHONY)"!="" 75*cdf0e10cSrcweir 76*cdf0e10cSrcweir$(HELP_OUT)$/$(TARGET).done : makefile.mk 77*cdf0e10cSrcweir.IF "$(WITH_LANG)"!="" 78*cdf0e10cSrcweir$(HELP_OUT)$/$(TARGET).done : $(LOCALIZESDF) 79*cdf0e10cSrcweir.ENDIF # "$(WITH_LANG)"!="" 80*cdf0e10cSrcweir.ENDIF # "$(HELPTRANSPHONY)"!="" 81*cdf0e10cSrcweir.ENDIF # "$(HLANGXHPFILES)"!="" 82*cdf0e10cSrcweir 83*cdf0e10cSrcweiroptix: $(HELP_OUT)$/$(TARGET).done 84*cdf0e10cSrcweir @echo done 85*cdf0e10cSrcweir 86*cdf0e10cSrcweir%.created : 87*cdf0e10cSrcweir @@-$(MKDIRHIER) $(@:d) 88*cdf0e10cSrcweir @$(TOUCH) $@ 89*cdf0e10cSrcweir 90*cdf0e10cSrcweir 91