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

This commit is contained in:
Rich Felker 2020-01-23 13:18:17 -05:00
parent 1be04b50ec
commit eb979cc08b
1 changed files with 1 additions and 0 deletions

View File

@ -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)/*)