1 #*************************************************************************
5 #* Creation date KR 28.06.99
6 #* last change $Author: rt $ $Date: 2007-11-06 15:56:17 $
12 #* Copyright 2000 Sun Microsystems, Inc. All Rights Reserved.
14 #*************************************************************************
17 PRJNAME
= helpcontent2
20 # --- Settings -----------------------------------------------------
22 .INCLUDE
: settings.mk
33 # --- Targets ------------------------------------------------------
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
)
55 LOCTREEFILES
:=$(foreach,i
,$(aux_alllangiso
) $(foreach,j
,$(TREEFILES
) $(COMMONMISC
)$/$i$/$j))
56 .ELSE
#IF "$(WITH_LANG)"!=""
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
) $@
65 @
-$(MKDIRHIER
) $(@
:d
) && $(TOUCH
) $@
67 $(LOCTREEFILES
) : $(TREEFILES
) $$(@
:d
)$/dir.created
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)"!=""
77 echo aux_langdirs
:=$(aux_langdirs
) > $(INCCOM
)$/aux_langs.mk
79 $(COMMONBIN
)$/helpimg.ilst .PHONY
:
81 $(PERL
) $(PRJ
)$/helpers
$/create_ilst.pl
-dir=$(SOLARSRC
)/default_images
/res
/helpimg
> $@.
$(INPATH
)
82 $(RENAME
) $@.
$(INPATH
) $@