From 3293dc367631a918748c1e140338c1311b6391d2 Mon Sep 17 00:00:00 2001 From: Marko Lindqvist Date: Fri, 17 Feb 2023 18:20:24 +0200 Subject: [PATCH 18/18] Respect automake silent mode on common/ build Have silent mode build configuration for - generate_packets.py - generate_gitrev.sh See osdn #46458 Signed-off-by: Marko Lindqvist --- common/Makefile.am | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/common/Makefile.am b/common/Makefile.am index 8bfc53b7ab..16996dde63 100644 --- a/common/Makefile.am +++ b/common/Makefile.am @@ -159,8 +159,16 @@ BUILT_SOURCES = packets_gen.c packets_gen.h packets_gen.h packets_gen.c: packets_generate .INTERMEDIATE: packets_generate packets_generate: networking/packets.def generate_packets.py - cd $(srcdir) && ./generate_packets.py packets_gen.h packets_gen.c ../client/packhand_gen.h ../client/packhand_gen.c ../server/hand_gen.h ../server/hand_gen.c - touch packets_generate + @if ! $(AM_V_P) ; then echo " $@" ; fi + $(AM_V_at) cd $(srcdir) && \ + ./generate_packets.py \ + packets_gen.h \ + packets_gen.c \ + ../client/packhand_gen.h \ + ../client/packhand_gen.c \ + ../server/hand_gen.h \ + ../server/hand_gen.c + $(AM_V_at) touch packets_generate # These files are not generated to builddir, but to srcdir */ MAINTAINERCLEANFILES = \ @@ -174,4 +182,6 @@ endif .PHONY : fc_gitrev_gen.h fc_gitrev_gen.h : - "$(top_srcdir)/bootstrap/generate_gitrev.sh" "$(top_srcdir)" "$(top_builddir)/common/fc_gitrev_gen.h" + @if ! $(AM_V_P) ; then echo " $@" ; fi + $(AM_V_at) "$(top_srcdir)/bootstrap/generate_gitrev.sh" \ + "$(top_srcdir)" "$(top_builddir)/common/fc_gitrev_gen.h" -- 2.39.1