From 44f48621a600b4b013115e2671c657725b77883c Mon Sep 17 00:00:00 2001 From: Christian Lohmaier Date: Thu, 11 Apr 2024 12:04:15 +0200 Subject: help: don't use clean targets as .PHONY targets Change-Id: Ic86270980823efb8dafd9d00ce33f986203cd975 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/166323 Tested-by: Jenkins Reviewed-by: Christian Lohmaier --- solenv/gbuild/HelpTarget.mk | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) (limited to 'solenv') diff --git a/solenv/gbuild/HelpTarget.mk b/solenv/gbuild/HelpTarget.mk index 75cb22153d91..98baa661e908 100644 --- a/solenv/gbuild/HelpTarget.mk +++ b/solenv/gbuild/HelpTarget.mk @@ -69,14 +69,9 @@ $(call gb_HelpTranslatePartTarget_get_target,%) : $(gb_HelpTranslatePartTarget_D $(call gb_HelpTranslatePartTarget__command,$@,$*,$^) $(call gb_Trace_EndRange,$*,HPX) -.PHONY : $(call gb_HelpTranslatePartTarget_get_clean_target,%) -$(call gb_HelpTranslatePartTarget_get_clean_target,%) : - $(call gb_Output_announce,$*,$(false),HPX,1) - $(call gb_Helper_abbreviate_dirs,\ - rm -rf \ - $(call gb_HelpTranslatePartTarget_get_target,$*) \ - $(call gb_HelpTranslatePartTarget_get_workdir,$*) \ - ) +clear_HelpTranslatePartTarget: + $(call gb_Output_announce,clear HelpTranslatePartTarget,$(false),HPX,1) + rm -rf $(call gb_HelpTranslatePartTarget_get_workdir) # Translate a set of .xhp files from one directory. # @@ -145,7 +140,7 @@ define gb_HelpTranslateTarget__make_part $(call gb_HelpTranslatePartTarget_HelpTranslatePartTarget,$(2),$(3),$(wildcard $(gb_POLOCATION)/$(3)/$(patsubst %/,%,$(4)).po)) $(call gb_HelpTranslateTarget_get_target,$(1)) : $(call gb_HelpTranslatePartTarget_get_target,$(2)) -$(call gb_HelpTranslateTarget_get_clean_target,$(1)) : $(call gb_HelpTranslatePartTarget_get_clean_target,$(2)) +$(call gb_HelpTranslateTarget_get_clean_target,$(1)) : clear_HelpTranslatePartTarget endef -- cgit