Collin Funk <collin.fu...@gmail.com> writes: > In Coreutils, which uses --enable-silent-rules by default, I see: > > $ make > GEN .version > GEN lib/alloca.h > GEN lib/arpa/inet.h > GEN lib/configmake.h > if test -n 'gcc'; then \ > /usr/bin/mkdir -p 'lib/crc-tmp' \ > && abs_srcdir=`cd ./lib/. && pwd` \ > && (cd 'lib/crc-tmp' \ > && gcc -g -O2 -o crc-generate-table > $abs_srcdir/crc-generate-table.c) \ > && 'lib/crc-tmp/crc-generate-table' ./lib/crc-sliceby8.h-t \ > && rm -rf 'lib/crc-tmp' \ > && mv ./lib/crc-sliceby8.h-t ./lib/crc-sliceby8.h; \ > fi > GEN lib/ctype.h
Something similar happens using the libgmp-mpz on some platforms. Applied the attached patch to follow --enable-silent-rules. Collin
>From 2a083b76a72eed5c3a1d24c76e99503de53d6317 Mon Sep 17 00:00:00 2001 From: Collin Funk <collin.fu...@gmail.com> Date: Wed, 15 Jan 2025 20:27:34 -0800 Subject: [PATCH] libgmp-mpz: Respect Automake's silent-rules. * modules/libgmp-mpz (Depends-on): Depend on gen-header. (Makefile.am): Prefix commands with $(AM_V_GEN), $(gl_V_at), and $(AM_V_at). --- ChangeLog | 7 +++++++ modules/libgmp-mpz | 19 ++++++++++--------- 2 files changed, 17 insertions(+), 9 deletions(-) diff --git a/ChangeLog b/ChangeLog index bef68432ee..b195f7f80b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2025-01-15 Collin Funk <collin.fu...@gmail.com> + + libgmp-mpz: Respect Automake's silent-rules. + * modules/libgmp-mpz (Depends-on): Depend on gen-header. + (Makefile.am): Prefix commands with $(AM_V_GEN), $(gl_V_at), and + $(AM_V_at). + 2025-01-14 Bruno Haible <br...@clisp.org> assert-h: Fix compilation error with gcc >= 13 on Solaris 11. diff --git a/modules/libgmp-mpz b/modules/libgmp-mpz index bdc14e5ff6..0aeb75271a 100644 --- a/modules/libgmp-mpz +++ b/modules/libgmp-mpz @@ -9,6 +9,7 @@ lib/mini-gmp.h m4/libgmp.m4 Depends-on: +gen-header configure.ac: gl_LIBGMP @@ -23,19 +24,19 @@ if GL_GENERATE_GMP_H if GL_GENERATE_MINI_GMP_H # Build gmp.h as a wrapper for mini-gmp.h when using mini-gmp. gmp.h: $(top_builddir)/config.status -@NMD@ $(MKDIR_P) '%reldir%' - echo '#include "mini-gmp.h"' > $@-t - echo '#if GNULIB_LIBGMP_MPQ' >> $@-t - echo '# include "mini-mpq.h"' >> $@-t - echo '#endif' >> $@-t - mv $@-t $@ +@NMD@ $(AM_V_GEN)$(MKDIR_P) '%reldir%' + $(gl_V_at)echo '#include "mini-gmp.h"' > $@-t + $(AM_V_at)echo '#if GNULIB_LIBGMP_MPQ' >> $@-t + $(AM_V_at)echo '# include "mini-mpq.h"' >> $@-t + $(AM_V_at)echo '#endif' >> $@-t + $(AM_V_at)mv $@-t $@ endif if GL_GENERATE_GMP_GMP_H # Build gmp.h as a wrapper for gmp/gmp.h. gmp.h: $(top_builddir)/config.status -@NMD@ $(MKDIR_P) '%reldir%' - echo '#include <gmp/gmp.h>' > $@-t - mv $@-t $@ +@NMD@ $(AM_V_GEN)$(MKDIR_P) '%reldir%' + $(gl_V_at)echo '#include <gmp/gmp.h>' > $@-t + $(AM_V_at)mv $@-t $@ endif else gmp.h: $(top_builddir)/config.status -- 2.48.0