1
0
mirror of https://github.com/bebbo/amiga-gcc.git synced 2026-05-09 22:35:38 +00:00

make binutils shallow and clean binutils on repo switch

This commit is contained in:
Bebbo
2018-06-16 22:36:48 +02:00
parent eb5b64a8e6
commit 9b326b2904

View File

@@ -149,8 +149,9 @@ update-binutils: projects/binutils/configure
if [[ "$${a[1]}" != "$(BINUTILS_GIT)" ]]; then \
rm -rf projects/binutils; \
$(MAKE) projects/binutils/configure; \
$(MAKE) clean-binutils; \
fi
cd projects/binutils && git pull
cd projects/binutils && export DEPTH=16; while true; do echo "trying depth=$$DEPTH"; git pull --depth $$DEPTH && break; export DEPTH=$$(($$DEPTH+$$DEPTH));done
update-fd2fsd: projects/fd2sfd/configure
cd projects/fd2sfd && git pull
@@ -263,7 +264,7 @@ build/binutils/gas/Makefile: projects/binutils/configure
projects/binutils/configure:
@mkdir -p projects
cd projects && git clone -b $(BINUTILS_BRANCH) $(BINUTILS_GIT) binutils
cd projects && git clone -b $(BINUTILS_BRANCH) --depth 16 $(BINUTILS_GIT) binutils
# =================================================