Ver código fonte

remove old patched source dir before trying to rename new one over it

Rich Felker 5 anos atrás
pai
commit
eb979cc08b
1 arquivos alterados com 1 adições e 0 exclusões
  1. 1 0
      Makefile

+ 1 - 0
Makefile

@@ -132,6 +132,7 @@ musl-git-%:
 	( cd $@.tmp && find ../$< -path '*/*/*' -prune -exec sh -c 'ln -s "$$@" .' ':' {} + )
 	test ! -d patches/$@ || cat patches/$@/* | ( cd $@.tmp && $(COWPATCH) -p1 )
 	test ! -f $</config.sub || ( rm -f $@.tmp/config.sub && cp -f $(SOURCES)/config.sub $@.tmp/ )
+	rm -rf $@
 	mv $@.tmp $@
 
 binutils-$(BINUTILS_VER): $(wildcard patches/binutils-$(BINUTILS_VER) patches/binutils-$(BINUTILS_VER)/*)