diff options
author | David Tardon <dtardon@redhat.com> | 2013-02-28 11:12:53 +0100 |
---|---|---|
committer | David Tardon <dtardon@redhat.com> | 2013-02-28 12:30:50 +0100 |
commit | cfe0fbb039e452ab75552e65474859573cb155fd (patch) | |
tree | d375f7bb209a7e6dca6b56c7a7af87d9944757df /solenv | |
parent | b12d5e12a60867531974ce6b4eca0ce653bcae7c (diff) |
do not create index for shared help module
Change-Id: I83f9b99abcc952dfea924662a0db8d98efc56307
Diffstat (limited to 'solenv')
-rw-r--r-- | solenv/gbuild/AllLangHelp.mk | 1 | ||||
-rw-r--r-- | solenv/gbuild/HelpTarget.mk | 33 |
2 files changed, 26 insertions, 8 deletions
diff --git a/solenv/gbuild/AllLangHelp.mk b/solenv/gbuild/AllLangHelp.mk index e547508d5297..bf8cf86062d5 100644 --- a/solenv/gbuild/AllLangHelp.mk +++ b/solenv/gbuild/AllLangHelp.mk @@ -155,6 +155,7 @@ endef # gb_AllLangHelp__use_linked_module module other-module lang define gb_AllLangHelp__use_linked_module $(call gb_HelpTarget_use_linked_module,$(call gb_AllLangHelp__get_helpname,$(1),$(3)),$(call gb_AllLangHelp__get_helpname,$(2),$(3))) +$(call gb_HelpTarget_set_indexed,$(call gb_AllLangHelp__get_helpname,$(1),$(3))) endef diff --git a/solenv/gbuild/HelpTarget.mk b/solenv/gbuild/HelpTarget.mk index 202961e7d6a0..0c13ee570b08 100644 --- a/solenv/gbuild/HelpTarget.mk +++ b/solenv/gbuild/HelpTarget.mk @@ -262,6 +262,7 @@ $(call gb_Output_announce,$(2),$(true),HLK,3) RESPONSEFILE=$(call var2file,$(shell $(gb_MKTEMP)),100,\ -lang $(HELP_LANG) \ -mod $(HELP_MODULE) \ + $(if $(HELP_INDEXED),,-noindex) \ -nolangroot \ -o $(WORKDIR)/dummy.zip \ -src $(HELP_SRCDIR) \ @@ -314,6 +315,7 @@ $(call gb_HelpLinkTarget_get_target,$(1)) : HELP_ADD_FILES := $(call gb_HelpLinkTarget_get_target,$(1)) : HELP_CONFIGDIR := $(call gb_HelpLinkTarget_get_target,$(1)) : HELP_EXTRA_ADD_FILES := $(call gb_HelpLinkTarget_get_target,$(1)) : HELP_FILES := +$(call gb_HelpLinkTarget_get_target,$(1)) : HELP_INDEXED := $(call gb_HelpLinkTarget_get_target,$(1)) : HELP_MODULE := $(2) $(call gb_HelpLinkTarget_get_target,$(1)) : HELP_LANG := $(3) $(call gb_HelpLinkTarget_get_target,$(1)) : HELP_LINKED_MODULES := @@ -346,6 +348,12 @@ $(call gb_HelpLinkTarget_get_target,$(1)) : $(2) endef +# gb_HelpLinkTarget_set_indexed target +define gb_HelpLinkTarget_set_indexed +$(call gb_HelpLinkTarget_get_target,$(1)) : HELP_INDEXED := $(true) + +endef + # gb_HelpLinkTarget_add_helpfile target helpfile define gb_HelpLinkTarget_add_helpfile $(call gb_HelpLinkTarget_get_target,$(1)) : HELP_FILES += $(2) @@ -568,12 +576,9 @@ $(call gb_HelpIndexTarget_HelpIndexTarget,$(1),$(2),$(3),$(4)) $(call gb_HelpJarTarget_HelpJarTarget,$(1),$(2),$(4)) $(call gb_Zip_Zip_internal_nodeliver,$(call gb_HelpTarget_get_zipname,$(1)),$(4)) -$(call gb_HelpTarget__add_initial_files,$(1),$(2),$(4)) - $(call gb_HelpLinkTarget_get_preparation_target,$(1)) : $(call gb_HelpTarget_get_translation_target,$(1)) $(call gb_HelpLinkTarget_get_target,$(1)) :| $(call gb_HelpTarget_get_workdir,$(1))/.dir -$(call gb_HelpIndexTarget_get_target,$(1)) : $(call gb_HelpLinkTarget_get_target,$(1)) -$(call gb_HelpTarget_get_packing_target,$(1)) : $(call gb_HelpIndexTarget_get_target,$(1)) +$(call gb_HelpTarget_get_packing_target,$(1)) : $(call gb_HelpLinkTarget_get_target,$(1)) $(call gb_Zip_get_target,$(call gb_HelpTarget_get_zipname,$(1))) : $(call gb_HelpTarget_get_packing_target,$(1)) $(call gb_HelpTarget_get_target,$(1)) : $(call gb_Zip_get_target,$(call gb_HelpTarget_get_zipname,$(1))) @@ -582,7 +587,6 @@ $(call gb_HelpTarget_get_target,$(1)) :| $(dir $(call gb_HelpTarget_get_target,$ $(call gb_HelpTarget_get_translation_target,$(1)) :| $(dir $(call gb_HelpTarget_get_translation_target,$(1))).dir $(call gb_HelpTarget_get_clean_target,$(1)) : $(call gb_HelpLinkTarget_get_clean_target,$(1)) -$(call gb_HelpTarget_get_clean_target,$(1)) : $(call gb_HelpIndexTarget_get_clean_target,$(1)) $(call gb_HelpTarget_get_clean_target,$(1)) : $(call gb_Zip_get_clean_target,$(call gb_HelpTarget_get_zipname,$(1))) endef @@ -600,10 +604,10 @@ $(call gb_HelpTarget_get_clean_target,$(1)) : $(call gb_HelpTreeTarget_get_clean endef -# Add always-present files into the zip. +# Add index files into the zip. # -# gb_HelpTarget__add_initial_files target module workdir -define gb_HelpTarget__add_initial_files +# gb_HelpTarget__add_index_files target module +define gb_HelpTarget__add_index_files $(call gb_HelpTarget__add_file,$(1),$(2).db) $(call gb_HelpTarget__add_file,$(1),$(2).ht) $(call gb_HelpTarget__add_file,$(1),$(2).idxl/segments.gen) @@ -643,6 +647,19 @@ $(call gb_HelpTarget__add_file,$(1),$(call gb_HelpTarget__get_module,$(1)).tree) endef +# Produce full text search index, bookmark list, etc. +# +# gb_HelpTarget_set_indexed target +define gb_HelpTarget_set_indexed +$(call gb_HelpLinkTarget_set_indexed,$(1)) +$(call gb_HelpTarget__add_index_files,$(1),$(call gb_HelpTarget__get_module,$(1))) + +$(call gb_HelpIndexTarget_get_target,$(1)) : $(call gb_HelpLinkTarget_get_target,$(1)) +$(call gb_HelpTarget_get_packing_target,$(1)) : $(call gb_HelpIndexTarget_get_target,$(1)) +$(call gb_HelpTarget_get_clean_target,$(1)) : $(call gb_HelpIndexTarget_get_clean_target,$(1)) + +endef + # gb_HelpTarget__add_jar target define gb_HelpTarget__add_jar $(call gb_HelpTarget__add_file,$(1),$(call gb_HelpTarget__get_module,$(1)).jar) |