merge the formfield patch from ooo-build
[ooovba.git] / helpcontent2 / source / auxiliary / makefile.mk
blob5f4369adb1bc54025f2390cee97542c747b90ee7
1 #*************************************************************************
2 #*
3 #* $Workfile:$
4 #*
5 #* Creation date KR 28.06.99
6 #* last change $Author: rt $ $Date: 2007-11-06 15:56:17 $
7 #*
8 #* $Revision: 1.13 $
9 #*
10 #* $Logfile:$
12 #* Copyright 2000 Sun Microsystems, Inc. All Rights Reserved.
14 #*************************************************************************
16 PRJ = ..$/..
17 PRJNAME = helpcontent2
18 TARGET = auxiliary
20 # --- Settings -----------------------------------------------------
22 .INCLUDE : settings.mk
24 TREEFILES = \
25 sbasic.tree \
26 simpress.tree \
27 scalc.tree \
28 smath.tree \
29 schart.tree \
30 swriter.tree \
31 shared.tree
33 # --- Targets ------------------------------------------------------
35 .INCLUDE : target.mk
36 .EXPORT : LOCALIZESDF LOCALIZATION_FOUND TRYSDF
38 ALLTAR : aux_dirs $(COMMONMISC)$/treefiles.done $(COMMONBIN)$/helpimg.ilst
40 .IF "$(WITH_LANG)"!=""
41 .IF "$(GUI)"=="UNX" || "$(USE_SHELL)"!="4nt"
42 t_aux_langdirs:=$(shell @find ./ -name "*.cfg" | sed "s/\.\/\///" | sed "s/\.\///" )
43 .ELSE # "$(GUI)"=="UNX" || "$(USE_SHELL)"!="4nt"
44 t_aux_langdirs:=$(subst,./, $(shell @$(FIND) ./ -name "*.cfg"))
45 .ENDIF # "$(GUI)"=="UNX" || "$(USE_SHELL)"!="4nt"
47 aux_langdirs:=$(uniq $(t_aux_langdirs:d:d))
49 aux_alllangiso:=$(foreach,i,$(alllangiso) $(foreach,j,$(aux_langdirs) $(eq,$i,$j $i $(NULL))))
51 WITH_LANG!:=$(aux_alllangiso)
53 .EXPORT : WITH_LANG
55 LOCTREEFILES:=$(foreach,i,$(aux_alllangiso) $(foreach,j,$(TREEFILES) $(COMMONMISC)$/$i$/$j))
56 .ELSE #IF "$(WITH_LANG)"!=""
57 aux_langdirs:=en-US
58 LOCTREEFILES:=$(foreach,j,$(TREEFILES) $(COMMONMISC)$/en-US$/$j)
59 .ENDIF #IF "$(WITH_LANG)"!=""
61 $(COMMONMISC)$/treefiles.done : $(LOCTREEFILES)
62 +$(PERL) $(PRJ)$/helpers$/update_tree.pl && $(TOUCH) $@
64 %.created:
65 @-$(MKDIRHIER) $(@:d) && $(TOUCH) $@
67 $(LOCTREEFILES) : $(TREEFILES) $$(@:d)$/dir.created
68 @$(TOUCH) $@
70 .IF "$(WITH_LANG)"!=""
71 #$(LOCTREEFILES) : $(PRJ)$/source$/text$/shared$/localize.sdf
72 $(LOCTREEFILES) : $(LOCALIZESDF:d:d:d:d)$/text$/shared/localize.sdf
73 $(LOCALIZESDF:d:d:d:d)$/text$/shared/localize.sdf : $(LOCALIZESDF)
74 .ENDIF # "$(WITH_LANG)"!=""
76 aux_dirs .PHONY :
77 echo aux_langdirs:=$(aux_langdirs) > $(INCCOM)$/aux_langs.mk
79 $(COMMONBIN)$/helpimg.ilst .PHONY:
80 -$(RM) $@
81 $(PERL) $(PRJ)$/helpers$/create_ilst.pl -dir=$(SOLARSRC)/default_images/res/helpimg > $@.$(INPATH)
82 $(RENAME) $@.$(INPATH) $@