sim: enable silent rules in common builds
authorMike Frysinger <vapier@gentoo.org>
Mon, 14 Jun 2021 23:54:04 +0000 (19:54 -0400)
committerMike Frysinger <vapier@gentoo.org>
Tue, 15 Jun 2021 00:04:44 +0000 (20:04 -0400)
We only do the common code as automake simplifies the logic.

sim/ChangeLog
sim/Makefile.in
sim/common/ChangeLog
sim/common/local.mk
sim/configure
sim/configure.ac
sim/testsuite/ChangeLog
sim/testsuite/common/local.mk

index 063469c653e0f1b4792b3ab7bd2227eea127919b..8df4fde31aacb64aad8e07efed3801fbe8f33aca 100644 (file)
@@ -1,3 +1,8 @@
+2021-06-14  Mike Frysinger  <vapier@gentoo.org>
+
+       * configure.ac: Call AM_SILENT_RULES.
+       * Makefile.in, configure: Regenerate.
+
 2021-06-12  Mike Frysinger  <vapier@gentoo.org>
 
        * Makefile.in: Regenerate.
index c710449d718c0ece7d9efa7054ba1a6e79ba5552..b5a2c2608dbc49cf2e138ab50ae2546a3dc1fd9e 100644 (file)
@@ -1585,9 +1585,9 @@ nltvals:
        $(SHELL) $(srcroot)/move-if-change nltvals.def $(abs_srcdir)/common/nltvals.def
 
 common/version.c: $(srcroot)/gdb/version.in $(srcroot)/bfd/version.h $(srcdir)/common/create-version.sh
-       $(SHELL) $(srcdir)/common/create-version.sh $(srcroot)/gdb $@.tmp
-       $(SHELL) $(srcroot)/move-if-change $@.tmp $@
-       touch $@
+       $(AM_V_GEN)$(SHELL) $(srcdir)/common/create-version.sh $(srcroot)/gdb $@.tmp
+       $(AM_V_at)$(SHELL) $(srcroot)/move-if-change $@.tmp $@
+       $(AM_V_at)touch $@
 
 # Alias for developers.
 @SIM_ENABLE_IGEN_TRUE@igen: igen/igen$(EXEEXT)
@@ -1638,33 +1638,33 @@ testsuite/common/bits32m0$(EXEEXT): $(testsuite_common_bits32m0_OBJECTS) $(tests
        $(AM_V_CCLD)$(LINK_FOR_BUILD) $(testsuite_common_bits32m0_OBJECTS) $(testsuite_common_bits32m0_LDADD)
 
 testsuite/common/bits32m0.c: testsuite/common/bits-gen testsuite/common/bits-tst.c
-       $< 32 0 big > $@.tmp
-       cat $(srcdir)/testsuite/common/bits-tst.c >> $@.tmp
-       mv $@.tmp $@
+       $(AM_V_GEN)$< 32 0 big > $@.tmp
+       $(AM_V_at)cat $(srcdir)/testsuite/common/bits-tst.c >> $@.tmp
+       $(AM_V_at)mv $@.tmp $@
 
 testsuite/common/bits32m31$(EXEEXT): $(testsuite_common_bits32m31_OBJECTS) $(testsuite_common_bits32m31_DEPENDENCIES) testsuite/common/$(am__dirstamp)
        $(AM_V_CCLD)$(LINK_FOR_BUILD) $(testsuite_common_bits32m31_OBJECTS) $(testsuite_common_bits32m31_LDADD)
 
 testsuite/common/bits32m31.c: testsuite/common/bits-gen testsuite/common/bits-tst.c
-       $< 32 31 little > $@.tmp
-       cat $(srcdir)/testsuite/common/bits-tst.c >> $@.tmp
-       mv $@.tmp $@
+       $(AM_V_GEN)$< 32 31 little > $@.tmp
+       $(AM_V_at)cat $(srcdir)/testsuite/common/bits-tst.c >> $@.tmp
+       $(AM_V_at)mv $@.tmp $@
 
 testsuite/common/bits64m0$(EXEEXT): $(testsuite_common_bits64m0_OBJECTS) $(testsuite_common_bits64m0_DEPENDENCIES) testsuite/common/$(am__dirstamp)
        $(AM_V_CCLD)$(LINK_FOR_BUILD) $(testsuite_common_bits64m0_OBJECTS) $(testsuite_common_bits64m0_LDADD)
 
 testsuite/common/bits64m0.c: testsuite/common/bits-gen testsuite/common/bits-tst.c
-       $< 64 0 big > $@.tmp
-       cat $(srcdir)/testsuite/common/bits-tst.c >> $@.tmp
-       mv $@.tmp $@
+       $(AM_V_GEN)$< 64 0 big > $@.tmp
+       $(AM_V_at)cat $(srcdir)/testsuite/common/bits-tst.c >> $@.tmp
+       $(AM_V_at)mv $@.tmp $@
 
 testsuite/common/bits64m63$(EXEEXT): $(testsuite_common_bits64m63_OBJECTS) $(testsuite_common_bits64m63_DEPENDENCIES) testsuite/common/$(am__dirstamp)
        $(AM_V_CCLD)$(LINK_FOR_BUILD) $(testsuite_common_bits64m63_OBJECTS) $(testsuite_common_bits64m63_LDADD)
 
 testsuite/common/bits64m63.c: testsuite/common/bits-gen testsuite/common/bits-tst.c
-       $< 64 63 little > $@.tmp
-       cat $(srcdir)/testsuite/common/bits-tst.c >> $@.tmp
-       mv $@.tmp $@
+       $(AM_V_GEN)$< 64 63 little > $@.tmp
+       $(AM_V_at)cat $(srcdir)/testsuite/common/bits-tst.c >> $@.tmp
+       $(AM_V_at)mv $@.tmp $@
 
 all-recursive: $(SIM_ALL_RECURSIVE_DEPS)
 
index 5bf47a368499cf874c743f096b0ccaf398eea424..14914dc04169f0ea93bb8289ccf6e454096364be 100644 (file)
@@ -1,3 +1,7 @@
+2021-06-14  Mike Frysinger  <vapier@gentoo.org>
+
+       * local.mk (%D%/version.c): Use AM_V_GEN & AM_V_at wrappers.
+
 2021-06-14  Mike Frysinger  <vapier@gentoo.org>
 
        * Make-common.in (GNULIB_BUILDDIR): Rename to ...
index 076335d0b42703d29b008055e9000d4af8870530..fc1149789a3c392ba029dc9906c0eea49e52daab 100644 (file)
@@ -39,6 +39,6 @@ noinst_LIBRARIES += %D%/libcommon.a
        %D%/version.c
 
 %D%/version.c: $(srcroot)/gdb/version.in $(srcroot)/bfd/version.h $(srcdir)/%D%/create-version.sh
-       $(SHELL) $(srcdir)/%D%/create-version.sh $(srcroot)/gdb $@.tmp
-       $(SHELL) $(srcroot)/move-if-change $@.tmp $@
-       touch $@
+       $(AM_V_GEN)$(SHELL) $(srcdir)/%D%/create-version.sh $(srcroot)/gdb $@.tmp
+       $(AM_V_at)$(SHELL) $(srcroot)/move-if-change $@.tmp $@
+       $(AM_V_at)touch $@
index 2d4204fe5261597d2fb8595c037662f84c88b9ae..5bfbd601fe55548a41ac6b99b36dbc7027a388eb 100755 (executable)
@@ -6218,6 +6218,45 @@ END
   fi
 fi
 
+# Check whether --enable-silent-rules was given.
+if test "${enable_silent_rules+set}" = set; then :
+  enableval=$enable_silent_rules;
+fi
+
+case $enable_silent_rules in # (((
+  yes) AM_DEFAULT_VERBOSITY=0;;
+   no) AM_DEFAULT_VERBOSITY=1;;
+    *) AM_DEFAULT_VERBOSITY=0;;
+esac
+am_make=${MAKE-make}
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
+$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
+if ${am_cv_make_support_nested_variables+:} false; then :
+  $as_echo_n "(cached) " >&6
+else
+  if $as_echo 'TRUE=$(BAR$(V))
+BAR0=false
+BAR1=true
+V=1
+am__doit:
+       @$(TRUE)
+.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
+  am_cv_make_support_nested_variables=yes
+else
+  am_cv_make_support_nested_variables=no
+fi
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
+$as_echo "$am_cv_make_support_nested_variables" >&6; }
+if test $am_cv_make_support_nested_variables = yes; then
+    AM_V='$(V)'
+  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
+else
+  AM_V=$AM_DEFAULT_VERBOSITY
+  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
+fi
+AM_BACKSLASH='\'
+
 
 # If a cpu ever has more than one simulator to choose from, use
 # --enable-sim=... to choose.
index e7f3f535ef5940e2dd7840c6918db1dd67ca8b6d..129e9421ec1dd9a8e0ddb7f48a3ddf18215d09bc 100644 (file)
@@ -19,6 +19,7 @@ SIM_AC_PLATFORM
 
 AM_MAINTAINER_MODE
 AM_INIT_AUTOMAKE
+AM_SILENT_RULES([yes])
 
 # If a cpu ever has more than one simulator to choose from, use
 # --enable-sim=... to choose.
index 4234747c86e2eebd7d7e9e6e801f45e8eee5708a..7265ed83cd3022abb6b3164f8fbc6822436c9ea9 100644 (file)
@@ -1,3 +1,8 @@
+2021-06-14  Mike Frysinger  <vapier@gentoo.org>
+
+       * common/local.mk (%D%/bits32m0.c, %D%/bits32m31.c, %D%/bits64m0.c,
+       %D%/bits64m63.c): Use AM_V_GEN & AM_V_at wrappers.
+
 2021-05-07  Dimitar Dimitrov  <dimitar@dinux.eu>
 
        * local.mk (%C%_CPPFLAGS): Add ../bfd include path.
index 4db7981d160225bc3022e41e55483e5eaed4e009..69f2d70eb5f49ab8f3b8c283016e80136ec5c237 100644 (file)
@@ -49,33 +49,33 @@ check_PROGRAMS += $(TESTS)
        $(AM_V_CCLD)$(LINK_FOR_BUILD) $(%C%_bits32m0_OBJECTS) $(%C%_bits32m0_LDADD)
 
 %D%/bits32m0.c: %D%/bits-gen %D%/bits-tst.c
-       $< 32 0 big > $@.tmp
-       cat $(srcdir)/%D%/bits-tst.c >> $@.tmp
-       mv $@.tmp $@
+       $(AM_V_GEN)$< 32 0 big > $@.tmp
+       $(AM_V_at)cat $(srcdir)/%D%/bits-tst.c >> $@.tmp
+       $(AM_V_at)mv $@.tmp $@
 
 %D%/bits32m31$(EXEEXT): $(%C%_bits32m31_OBJECTS) $(%C%_bits32m31_DEPENDENCIES) %D%/$(am__dirstamp)
        $(AM_V_CCLD)$(LINK_FOR_BUILD) $(%C%_bits32m31_OBJECTS) $(%C%_bits32m31_LDADD)
 
 %D%/bits32m31.c: %D%/bits-gen %D%/bits-tst.c
-       $< 32 31 little > $@.tmp
-       cat $(srcdir)/%D%/bits-tst.c >> $@.tmp
-       mv $@.tmp $@
+       $(AM_V_GEN)$< 32 31 little > $@.tmp
+       $(AM_V_at)cat $(srcdir)/%D%/bits-tst.c >> $@.tmp
+       $(AM_V_at)mv $@.tmp $@
 
 %D%/bits64m0$(EXEEXT): $(%C%_bits64m0_OBJECTS) $(%C%_bits64m0_DEPENDENCIES) %D%/$(am__dirstamp)
        $(AM_V_CCLD)$(LINK_FOR_BUILD) $(%C%_bits64m0_OBJECTS) $(%C%_bits64m0_LDADD)
 
 %D%/bits64m0.c: %D%/bits-gen %D%/bits-tst.c
-       $< 64 0 big > $@.tmp
-       cat $(srcdir)/%D%/bits-tst.c >> $@.tmp
-       mv $@.tmp $@
+       $(AM_V_GEN)$< 64 0 big > $@.tmp
+       $(AM_V_at)cat $(srcdir)/%D%/bits-tst.c >> $@.tmp
+       $(AM_V_at)mv $@.tmp $@
 
 %D%/bits64m63$(EXEEXT): $(%C%_bits64m63_OBJECTS) $(%C%_bits64m63_DEPENDENCIES) %D%/$(am__dirstamp)
        $(AM_V_CCLD)$(LINK_FOR_BUILD) $(%C%_bits64m63_OBJECTS) $(%C%_bits64m63_LDADD)
 
 %D%/bits64m63.c: %D%/bits-gen %D%/bits-tst.c
-       $< 64 63 little > $@.tmp
-       cat $(srcdir)/%D%/bits-tst.c >> $@.tmp
-       mv $@.tmp $@
+       $(AM_V_GEN)$< 64 63 little > $@.tmp
+       $(AM_V_at)cat $(srcdir)/%D%/bits-tst.c >> $@.tmp
+       $(AM_V_at)mv $@.tmp $@
 
 CLEANFILES += \
        %D%/bits-gen \