public inbox for newlib@sourceware.org
 help / color / mirror / Atom feed
From: Mike Frysinger <vapier@gentoo.org>
To: newlib@sourceware.org
Subject: [PATCH] newlib: add silent rules support to top-level rules
Date: Sun, 20 Feb 2022 00:27:52 -0500	[thread overview]
Message-ID: <20220220052752.14597-1-vapier@gentoo.org> (raw)

---
 newlib/Makefile.am | 58 +++++++++++++++++++++++-----------------------
 newlib/Makefile.in | 58 +++++++++++++++++++++++-----------------------
 2 files changed, 58 insertions(+), 58 deletions(-)

diff --git a/newlib/Makefile.am b/newlib/Makefile.am
index 4e8545c2c72b..48bbee6efaa4 100644
--- a/newlib/Makefile.am
+++ b/newlib/Makefile.am
@@ -128,55 +128,55 @@ $(BUILD_MULTISUBDIR):
 	$(MKDIR_P) $@
 
 $(BUILD_MULTISUBDIR)/crt0.o: $(CRT0_DIR)$(CRT0) $(BUILD_MULTISUBDIR)
-	rm -f $@
-	ln $< $@ >/dev/null 2>/dev/null || cp $< $@
+	$(AM_V_at)rm -f $@
+	$(AM_V_GEN)ln $< $@ >/dev/null 2>/dev/null || cp $< $@
 
 $(BUILD_MULTISUBDIR)/libc.a: libc.a $(BUILD_MULTISUBDIR)
-	rm -f $@ $(BUILD_MULTISUBDIR)/libg.a
-	ln $< $@ >/dev/null 2>/dev/null || cp $< $@
+	$(AM_V_at)rm -f $@ $(BUILD_MULTISUBDIR)/libg.a
+	$(AM_V_GEN)ln $< $@ >/dev/null 2>/dev/null || cp $< $@
 	ln libg.a $(BUILD_MULTISUBDIR)/libg.a >/dev/null 2>/dev/null || \
 	cp libg.a $(BUILD_MULTISUBDIR)/libg.a
 
 $(BUILD_MULTISUBDIR)/libm.a: libm.a $(BUILD_MULTISUBDIR)
-	rm -f $@
-	ln $< $@ >/dev/null 2>/dev/null || cp $< $@
+	$(AM_V_at)rm -f $@
+	$(AM_V_GEN)ln $< $@ >/dev/null 2>/dev/null || cp $< $@
 endif
 
 crt0.o: $(CRT0_DIR)$(CRT0)
-	rm -f $@
-	ln $< $@ >/dev/null 2>/dev/null || cp $< $@
+	$(AM_V_at)rm -f $@
+	$(AM_V_GEN)ln $< $@ >/dev/null 2>/dev/null || cp $< $@
 
 $(CRT0_DIR)$(CRT0): stmp-targ-include
 
 crt1.o: $(CRT1_DIR)$(CRT1)
-	rm -f $@
-	ln $< $@ >/dev/null 2>/dev/null || cp $< $@
+	$(AM_V_at)rm -f $@
+	$(AM_V_GEN)ln $< $@ >/dev/null 2>/dev/null || cp $< $@
 
 $(CRT1_DIR)$(CRT1): stmp-targ-include
 
 targ-include:
-	mkdir $@
+	$(AM_V_GEN)$(MKDIR_P) $@
 
 targ-include/newlib.h: targ-include/_newlib_version.h
 
 targ-include/sys targ-include/machine targ-include/bits: targ-include/_newlib_version.h targ-include/newlib.h
-	mkdir $@
+	$(AM_V_GEN)$(MKDIR_P) $@
 
 targ-include/newlib.h: newlib.h targ-include
-	cp newlib.h $@
+	$(AM_V_GEN)cp newlib.h $@
 
 targ-include/_newlib_version.h: _newlib_version.h targ-include
-	cp _newlib_version.h $@
+	$(AM_V_GEN)cp _newlib_version.h $@
 
 # The targ-include directory just holds the includes files for the
 # particular system and machine we have been configured for.  It is
 # used while building.
 stmp-targ-include: config.status
-	-rm -rf targ-include stmp-targ-include
-	$(MAKE) targ-include/sys \
+	$(AM_V_GEN)rm -rf targ-include stmp-targ-include
+	$(AM_V_at)$(MAKE) targ-include/sys \
 		targ-include/machine \
 		targ-include/bits
-	-if [ -n "$(shared_machine_dir)" ]; then \
+	-$(AM_V_at)if [ -n "$(shared_machine_dir)" ]; then \
 	    for i in $(srcdir)/libc/machine/$(shared_machine_dir)/machine/*.h; do \
 		if [ -f $$i ]; then \
 		  cp $$i targ-include/machine/`basename $$i`; \
@@ -193,27 +193,27 @@ stmp-targ-include: config.status
 		else true; fi ; \
 	      done; \
 	  fi
-	-for i in $(srcdir)/libc/machine/$(machine_dir)/machine/*.h; do \
+	-$(AM_V_at)for i in $(srcdir)/libc/machine/$(machine_dir)/machine/*.h; do \
 	    if [ -f $$i ]; then \
 	      cp $$i targ-include/machine/`basename $$i`; \
 	    else true; fi ; \
 	  done
-	-for i in $(srcdir)/libc/machine/$(machine_dir)/sys/*.h; do \
+	-$(AM_V_at)for i in $(srcdir)/libc/machine/$(machine_dir)/sys/*.h; do \
 	    if [ -f $$i ]; then \
 	      cp $$i targ-include/sys/`basename $$i`; \
 	    else true; fi ; \
 	  done
-	-for i in $(srcdir)/libc/machine/$(machine_dir)/include/*.h; do \
+	-$(AM_V_at)for i in $(srcdir)/libc/machine/$(machine_dir)/include/*.h; do \
 	    if [ -f $$i ]; then \
 	      cp $$i targ-include/`basename $$i`; \
 	    else true; fi ; \
 	  done
-	-for i in $(srcdir)/libc/sys/$(sys_dir)/include/*.h; do \
+	-$(AM_V_at)for i in $(srcdir)/libc/sys/$(sys_dir)/include/*.h; do \
 	    if [ -f $$i ]; then \
 	      cp $$i targ-include/`basename $$i`; \
 	    else true; fi ; \
 	  done
-	-for i in $(srcdir)/libc/sys/$(sys_dir)/include/*; do \
+	-$(AM_V_at)for i in $(srcdir)/libc/sys/$(sys_dir)/include/*; do \
 	    if [ -d $$i ]; then \
 		for j in $$i/*.h; do \
 		    if [ ! -d targ-include/`basename $$i` ]; then \
@@ -223,33 +223,33 @@ stmp-targ-include: config.status
 		done \
 	    else true; fi ; \
 	  done
-	-for i in $(srcdir)/libc/sys/$(sys_dir)/sys/*.h; do \
+	-$(AM_V_at)for i in $(srcdir)/libc/sys/$(sys_dir)/sys/*.h; do \
 	    if [ -f $$i ]; then \
 	      cp $$i targ-include/sys/`basename $$i`; \
 	    else true; fi ; \
 	  done
-	-for i in $(srcdir)/libc/sys/$(sys_dir)/bits/*.h; do \
+	-$(AM_V_at)for i in $(srcdir)/libc/sys/$(sys_dir)/bits/*.h; do \
 	    if [ -f $$i ]; then \
 	      cp $$i targ-include/bits/`basename $$i`; \
 	    else true; fi ; \
 	  done
-	-for i in $(srcdir)/libc/sys/$(sys_dir)/machine/*.h; do \
+	-$(AM_V_at)for i in $(srcdir)/libc/sys/$(sys_dir)/machine/*.h; do \
 	    if [ -f $$i ]; then \
 	      cp $$i targ-include/machine/`basename $$i`; \
 	    else true; fi ; \
 	  done
-	-for i in $(srcdir)/libc/sys/$(sys_dir)/machine/$(machine_dir)/*.h; do \
+	-$(AM_V_at)for i in $(srcdir)/libc/sys/$(sys_dir)/machine/$(machine_dir)/*.h; do \
 	    if [ -f $$i ]; then \
 	      cp $$i targ-include/machine/`basename $$i`; \
 	    else true; fi ; \
 	  done
-	-for i in $(srcdir)/libc/sys/$(sys_dir)/machine/$(machine_dir)/include/*.h; do \
+	-$(AM_V_at)for i in $(srcdir)/libc/sys/$(sys_dir)/machine/$(machine_dir)/include/*.h; do \
 	    if [ -f $$i ]; then \
 	      cp $$i targ-include/machine/`basename $$i`; \
 	    else true; fi ; \
 	  done
-	$(MAKE) targ-include/newlib.h
-	touch $@
+	$(AM_V_at)$(MAKE) targ-include/newlib.h
+	$(AM_V_at)touch $@
 
 CLEANFILES += stmp-targ-include
 
-- 
2.34.1


             reply	other threads:[~2022-02-20  5:27 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-02-20  5:27 Mike Frysinger [this message]
2022-02-24  9:53 ` Corinna Vinschen
2022-02-25  0:24   ` Mike Frysinger
2022-02-25 15:10     ` Corinna Vinschen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20220220052752.14597-1-vapier@gentoo.org \
    --to=vapier@gentoo.org \
    --cc=newlib@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).