From b11d57bc1d4f50fe4b591562b926de6eb03cd0d4 Mon Sep 17 00:00:00 2001 From: "G. Branden Robinson" Date: Thu, 21 Oct 2021 19:28:26 +1100 Subject: [arch]: Build more quietly and DRY. * arch/misc/misc.am: (arch_shdeps_sh): Pull file name into a new variable. (EXTRA_DIST, shdeps.sed): Ue it. (shdeps.sed): Build more quietly; prefix with `$(AM_GEN_V)`. Also wrap long lines and tweak legal notice formatting. --- arch/misc/misc.am | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) (limited to 'arch') diff --git a/arch/misc/misc.am b/arch/misc/misc.am index 8482a6793..08498283b 100644 --- a/arch/misc/misc.am +++ b/arch/misc/misc.am @@ -1,27 +1,31 @@ # Copyright (C) 2004-2020 Free Software Foundation, Inc. # Original Makefile.sub written by Keith Marshall -# (keith.d.marshall@ntlworld.com). -# Adapted to Automake by Bertrand Garrigues (bertrand.garrigues@laposte.net). +# . +# Adapted to Automake by Bertrand Garrigues +# . # # This file is part of groff. # # groff is free software; you can redistribute it and/or modify it under # the terms of the GNU General Public License as published by the Free -# Software Foundation, either version 3 of the License, or -# (at your option) any later version. +# Software Foundation, either version 3 of the License, or (at your +# option) any later version. # -# groff is distributed in the hope that it will be useful, but WITHOUT ANY -# WARRANTY; without even the implied warranty of MERCHANTABILITY or +# groff is distributed in the hope that it will be useful, but WITHOUT +# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License # for more details. # # You should have received a copy of the GNU General Public License # along with this program. If not, see . -EXTRA_DIST += arch/misc/shdeps.sh + +arch_shdeps_sh = arch/misc/shdeps.sh +EXTRA_DIST += $(arch_shdeps_sh) MOSTLYCLEANFILES += shdeps.sed -shdeps.sed: $(top_srcdir)/arch/misc/shdeps.sh - $(SHELL) $(top_srcdir)/arch/misc/shdeps.sh "$(RT_SEP)" "$(SH_SEP)" "$(bindir)" > $@ +shdeps.sed: $(top_srcdir)/$(arch_shdeps_sh) + $(AM_V_GEN)$(SHELL) $(top_srcdir)/$(arch_shdeps_sh) \ + "$(RT_SEP)" "$(SH_SEP)" "$(bindir)" > $@ # Local Variables: -- cgit v1.2.1