aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlejandro Colomar <alx@kernel.org>2024-02-22 18:10:30 +0100
committerAlejandro Colomar <alx@kernel.org>2024-02-25 10:50:53 +0100
commitdc9ab58614b7acbeddc80895feeaba871ca67e5c (patch)
treea8de10ec07d84ce616e38f24fafa046709aacaf6
parent6fa62c277eed2939568acb2219e5e68b317cf3ae (diff)
downloadman-pages-dc9ab58614b7acbeddc80895feeaba871ca67e5c.tar.gz
share/mk/: distcheck: Remove old directory before untarring the new tarball
Signed-off-by: Alejandro Colomar <alx@kernel.org>
-rw-r--r--share/mk/dist/check/tar.mk1
1 files changed, 1 insertions, 0 deletions
diff --git a/share/mk/dist/check/tar.mk b/share/mk/dist/check/tar.mk
index dba6483a83..b5ea2bee12 100644
--- a/share/mk/dist/check/tar.mk
+++ b/share/mk/dist/check/tar.mk
@@ -19,6 +19,7 @@ $(_DISTCHECKDIR)/$(DISTNAME).tar: $(DISTFILE) $(MK) | $$(@D)/
$(_DISTCHECKSRCDIR): %: %.tar $(MK) | $$(@D)/
$(info $(INFO_)TAR xf $<)
+ $(RM) -rf $@
cd $(dir $<) \
&& $(TAR) xf $(notdir $<)
$(TOUCH) $@