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: makefile.pmk,v $
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 SHELL_PACKAGE:=$(subst,/,$/ $(PACKAGE))
33 HLANGXHPFILES:=$(foreach,i,$(XHPFILES) $(foreach,j,$(aux_alllangiso) $(COMMONMISC)$/$j$/$(SHELL_PACKAGE)$/$(i:f)))
35 ALLTAR : $(COMMONMISC)$/$(TARGET).done $(COMMONMISC)$/xhp_changed.flag optix
37 $(HLANGXHPFILES) : $$(@:d)thisdir.created
39 $(COMMONMISC)$/{$(aux_alllangiso)}$/$(SHELL_PACKAGE)$/%.xhp :| %.xhp
41 # internal dependencies not sufficient to trigger merge?
45 $(COMMONMISC)$/$(TARGET).done : $(HLANGXHPFILES)
46 .IF "$(WITH_LANG)"!=""
47 $(AUGMENT_LIBRARY_PATH) $(HELPEX) -QQ -p helpcontent2 -r $(PRJ) -i @$(mktmp $(uniq $(foreach,i,$? $(!eq,$(i:f),$(i:f:s/.xhp//) $(i:f) $(XHPFILES))))) -x $(COMMONMISC) -y $(SHELL_PACKAGE) -l all -lf $(aux_alllangiso:t",") -m $(LOCALIZESDF) && $(TOUCH) $@
48 .ELSE # "$(WITH_LANG)"!=""
49 .IF "$(USE_SHELL)"=="4nt"
50 # it's getting real ugly...
51 (cmd /c type $(mktmp $(uniq $(foreach,i,$? $(!eq,$(i:f),$(i:f:s/.xhp//) $(i:f) $(XHPFILES))))) | xargs --verbose --max-args=15 cp -t $(COMMONMISC)$/en-US$/$(SHELL_PACKAGE)) && $(TOUCH) $@
52 .ELSE # "$(USE_SHELL)"=="4nt"
53 cp $(uniq $(foreach,i,$? $(!eq,$(i:f),$(i:f:s/.xhp//) $(i:f) $(XHPFILES)))) $(COMMONMISC)$/en-US$/$(SHELL_PACKAGE) && $(TOUCH) $@
54 .ENDIF # "$(USE_SHELL)"=="4nt"
55 .ENDIF # "$(WITH_LANG)"!=""
56 .IF "$(OS)"=="SOLARIS"
58 .ELSE # "$(OS)"=="SOLARIS"
60 .ENDIF # "$(OS)"=="SOLARIS"
62 $(COMMONMISC)$/xhp_changed.flag : $(HLANGXHPFILES)
65 # urks - dmake mixes up operators and strings :-(
66 .IF "$(HLANGXHPFILES:s/defined/xxx/)"!=""
68 .IF "$(HELPTRANSPHONY)"!=""
69 $(COMMONMISC)$/$(TARGET).done .PHONY :
70 .ELSE # "$(HELPTRANSPHONY)"!=""
72 $(COMMONMISC)$/$(TARGET).done : makefile.mk
73 .IF "$(WITH_LANG)"!=""
74 $(COMMONMISC)$/$(TARGET).done : $(LOCALIZESDF)
75 .ENDIF # "$(WITH_LANG)"!=""
76 .ENDIF # "$(HELPTRANSPHONY)"!=""
77 .ENDIF # "$(HLANGXHPFILES)"!=""
79 optix: $(COMMONMISC)$/$(TARGET).done
83 @@-$(MKDIRHIER) $(@:d)