]> git.ipfire.org Git - thirdparty/man-pages.git/commitdiff
share/mk/: distcheck: Remove old directory before untarring the new tarball
authorAlejandro Colomar <alx@kernel.org>
Thu, 22 Feb 2024 17:10:30 +0000 (18:10 +0100)
committerAlejandro Colomar <alx@kernel.org>
Sun, 25 Feb 2024 09:50:53 +0000 (10:50 +0100)
Signed-off-by: Alejandro Colomar <alx@kernel.org>
share/mk/dist/check/tar.mk

index dba6483a83b4409c93779bd140a59d9fbe7b66cb..b5ea2bee120f0bcb4290d6d5c12539bc2f984261 100644 (file)
@@ -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) $@