Makefile: Remove @echo from ARCHIVE

to avoid shell complain that @echo can't find if the variable expand in the compound
command(e.g. ARLOCK) and remove $(Q) before $AR so the result is almost same as before.
This commit is contained in:
Xiang Xiao
2020-02-19 19:41:54 +08:00
committed by Gregory Nutt
parent d07afc934e
commit 342f76a529
7 changed files with 14 additions and 28 deletions
@@ -194,8 +194,7 @@ define MOVEOBJ
endef
define ARCHIVE
@echo AR: $2
$(Q) for %%G in ($(2)) do ( "$(AR)" $(ARFLAGS) $1=-+%%G )
for %%G in ($(2)) do ( "$(AR)" $(ARFLAGS) $1=-+%%G )
endef
define CLEAN
@@ -228,8 +227,7 @@ define MOVEOBJ
endef
define ARCHIVE
$(Q) for __obj in $(2) ; do \
echo "AR: $$__obj"; \
for __obj in $(2) ; do \
"$(AR)" $(ARFLAGS) $1=-+$$__obj || { echo "$(AR) $1=-+$$__obj FAILED!" ; exit 1 ; } \
done
endef