mirror of
https://github.com/richfelker/musl-cross-make.git
synced 2025-04-16 22:14:59 +02:00
Fix: archive dont del source file
This commit is contained in:
parent
70344021c7
commit
ed52296c71
13
Makefile
13
Makefile
@ -56,6 +56,13 @@ clean:
|
||||
distclean: clean
|
||||
rm -rf sources
|
||||
|
||||
check:
|
||||
@echo "check bzip2"
|
||||
@which bzip2
|
||||
@echo "check gcc"
|
||||
@which gcc
|
||||
@echo "check libtool"
|
||||
@which libtool
|
||||
|
||||
# Rules for downloading and verifying sources. Treat an external SOURCES path as
|
||||
# immutable and do not try to download anything into it.
|
||||
@ -112,7 +119,7 @@ musl-git-%:
|
||||
case "$@" in */*) exit 1 ;; esac
|
||||
rm -rf $@.tmp
|
||||
mkdir $@.tmp
|
||||
( cd $@.tmp && tar zxvf - ) < $<
|
||||
( cd $@.tmp && tar -zxvf - ) < $<
|
||||
rm -rf $@
|
||||
touch $@.tmp/$(patsubst %.orig,%,$@)
|
||||
mv $@.tmp/$(patsubst %.orig,%,$@) $@
|
||||
@ -122,7 +129,7 @@ musl-git-%:
|
||||
case "$@" in */*) exit 1 ;; esac
|
||||
rm -rf $@.tmp
|
||||
mkdir $@.tmp
|
||||
( cd $@.tmp && tar jxvf - ) < $<
|
||||
( cd $@.tmp && tar -jxvf - ) < $<
|
||||
rm -rf $@
|
||||
touch $@.tmp/$(patsubst %.orig,%,$@)
|
||||
mv $@.tmp/$(patsubst %.orig,%,$@) $@
|
||||
@ -132,7 +139,7 @@ musl-git-%:
|
||||
case "$@" in */*) exit 1 ;; esac
|
||||
rm -rf $@.tmp
|
||||
mkdir $@.tmp
|
||||
( cd $@.tmp && tar Jxvf - ) < $<
|
||||
( cd $@.tmp && tar -Jxvf - ) < $<
|
||||
rm -rf $@
|
||||
touch $@.tmp/$(patsubst %.orig,%,$@)
|
||||
mv $@.tmp/$(patsubst %.orig,%,$@) $@
|
||||
|
@ -59,7 +59,6 @@ function Build() {
|
||||
exit 1
|
||||
fi
|
||||
if [ ! "$TEST_BUILD_ONLY" ]; then
|
||||
rm -rf output/${TARGET}
|
||||
tar -zcvf ${DIST}/${TARGET}.tgz output/*
|
||||
if [ $? -ne 0 ]; then
|
||||
echo "package ${TARGET} error"
|
||||
|
Loading…
Reference in New Issue
Block a user