summaryrefslogtreecommitdiff
path: root/solenv
diff options
context:
space:
mode:
authorChristian Lohmaier <lohmaier+LibreOffice@googlemail.com>2024-04-11 12:04:15 +0200
committerChristian Lohmaier <lohmaier+LibreOffice@googlemail.com>2024-04-22 13:29:36 +0200
commit44f48621a600b4b013115e2671c657725b77883c (patch)
treef51941615ed95cbd3ea8db79e54eddb04aaef28d /solenv
parenta7a4984b58cf7cb84b0157ca68ee9191043ca65b (diff)
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 <lohmaier+LibreOffice@googlemail.com>
Diffstat (limited to 'solenv')
-rw-r--r--solenv/gbuild/HelpTarget.mk13
1 files changed, 4 insertions, 9 deletions
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