From: Alejandro Colomar Date: Thu, 22 Feb 2024 17:10:30 +0000 (+0100) Subject: share/mk/: distcheck: Remove old directory before untarring the new tarball X-Git-Tag: man-pages-6.7~94 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dc9ab58614b7acbeddc80895feeaba871ca67e5c;p=thirdparty%2Fman-pages.git share/mk/: distcheck: Remove old directory before untarring the new tarball Signed-off-by: Alejandro Colomar --- diff --git a/share/mk/dist/check/tar.mk b/share/mk/dist/check/tar.mk index dba6483a8..b5ea2bee1 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) $@