aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGlenn Morris2021-03-06 16:28:46 -0800
committerGlenn Morris2021-03-06 16:28:46 -0800
commitd632622b5aac5ff776e1b5048f29aeaf3ceaf553 (patch)
treee6a3ce1c7feea935b2fdfa7b4198f595e617cde9 /src
parent9cbdf20316e1cec835a7dfe28877142e437976f4 (diff)
downloademacs-d632622b5aac5ff776e1b5048f29aeaf3ceaf553.tar.gz
emacs-d632622b5aac5ff776e1b5048f29aeaf3ceaf553.zip
Simplify silent-rules build machinery
* src/verbose.mk.in: New file. * configure.ac (AM_V, AM_DEFAULT_V): Remove output variables. (src/verbose.mk): New output file. * Makefile.in, admin/charsets/Makefile.in: * admin/grammars/Makefile.in, admin/unidata/Makefile.in: * doc/emacs/Makefile.in, doc/lispintro/Makefile.in: * doc/lispref/Makefile.in, doc/misc/Makefile.in, leim/Makefile.in: * lib-src/Makefile.in, lib/Makefile.in, lisp/Makefile.in: * lwlib/Makefile.in, nt/Makefile.in, oldXMenu/Makefile.in: * src/Makefile.in, src/verbose.mk.in, test/Makefile.in: Include src/verbose.mk rather than repeatedly defining AM_V_at etc.
Diffstat (limited to 'src')
-rw-r--r--src/Makefile.in36
-rw-r--r--src/verbose.mk.in42
2 files changed, 45 insertions, 33 deletions
diff --git a/src/Makefile.in b/src/Makefile.in
index a5ea5498a49..f3c545dba9a 100644
--- a/src/Makefile.in
+++ b/src/Makefile.in
@@ -29,6 +29,7 @@ SHELL = @SHELL@
29# We use $(srcdir) explicitly in dependencies so as not to depend on VPATH. 29# We use $(srcdir) explicitly in dependencies so as not to depend on VPATH.
30srcdir = @srcdir@ 30srcdir = @srcdir@
31top_srcdir = @top_srcdir@ 31top_srcdir = @top_srcdir@
32top_builddir = @top_builddir@
32# MinGW CPPFLAGS may use this. 33# MinGW CPPFLAGS may use this.
33abs_top_srcdir=@abs_top_srcdir@ 34abs_top_srcdir=@abs_top_srcdir@
34VPATH = $(srcdir) 35VPATH = $(srcdir)
@@ -340,33 +341,7 @@ HAVE_PDUMPER = @HAVE_PDUMPER@
340## invalidates the signature, we must re-sign to fix it. 341## invalidates the signature, we must re-sign to fix it.
341DO_CODESIGN=$(patsubst aarch64-apple-darwin%,yes,@configuration@) 342DO_CODESIGN=$(patsubst aarch64-apple-darwin%,yes,@configuration@)
342 343
343# 'make' verbosity. 344-include ${top_builddir}/src/verbose.mk
344AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
345
346AM_V_CC = $(am__v_CC_@AM_V@)
347am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@)
348am__v_CC_0 = @echo " CC " $@;
349am__v_CC_1 =
350
351AM_V_CCLD = $(am__v_CCLD_@AM_V@)
352am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@)
353am__v_CCLD_0 = @echo " CCLD " $@;
354am__v_CCLD_1 =
355
356AM_V_GEN = $(am__v_GEN_@AM_V@)
357am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
358am__v_GEN_0 = @echo " GEN " $@;
359am__v_GEN_1 =
360
361AM_V_at = $(am__v_at_@AM_V@)
362am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
363am__v_at_0 = @
364am__v_at_1 =
365
366AM_V_NO_PD = $(am__v_NO_PD_@AM_V@)
367am__v_NO_PD_ = $(am__v_NO_PD_@AM_DEFAULT_V@)
368am__v_NO_PD_0 = --no-print-directory
369am__v_NO_PD_1 =
370 345
371bootstrap_exe = ../src/bootstrap-emacs$(EXEEXT) 346bootstrap_exe = ../src/bootstrap-emacs$(EXEEXT)
372ifeq ($(DUMPING),pdumper) 347ifeq ($(DUMPING),pdumper)
@@ -621,11 +596,6 @@ buildobj.h: Makefile
621 596
622GLOBAL_SOURCES = $(base_obj:.o=.c) $(NS_OBJC_OBJ:.o=.m) 597GLOBAL_SOURCES = $(base_obj:.o=.c) $(NS_OBJC_OBJ:.o=.m)
623 598
624AM_V_GLOBALS = $(am__v_GLOBALS_@AM_V@)
625am__v_GLOBALS_ = $(am__v_GLOBALS_@AM_DEFAULT_V@)
626am__v_GLOBALS_0 = @echo " GEN " globals.h;
627am__v_GLOBALS_1 =
628
629gl-stamp: $(libsrc)/make-docfile$(EXEEXT) $(GLOBAL_SOURCES) 599gl-stamp: $(libsrc)/make-docfile$(EXEEXT) $(GLOBAL_SOURCES)
630 $(AM_V_GLOBALS)$(libsrc)/make-docfile -d $(srcdir) -g $(obj) > globals.tmp 600 $(AM_V_GLOBALS)$(libsrc)/make-docfile -d $(srcdir) -g $(obj) > globals.tmp
631 $(AM_V_at)$(top_srcdir)/build-aux/move-if-change globals.tmp globals.h 601 $(AM_V_at)$(top_srcdir)/build-aux/move-if-change globals.tmp globals.h
@@ -724,7 +694,7 @@ bootstrap-clean: clean
724 fi 694 fi
725 695
726distclean: bootstrap-clean 696distclean: bootstrap-clean
727 rm -f Makefile lisp.mk 697 rm -f Makefile lisp.mk verbose.mk
728 rm -fr $(DEPDIR) 698 rm -fr $(DEPDIR)
729 699
730maintainer-clean: distclean 700maintainer-clean: distclean
diff --git a/src/verbose.mk.in b/src/verbose.mk.in
new file mode 100644
index 00000000000..e55fd63fc3c
--- /dev/null
+++ b/src/verbose.mk.in
@@ -0,0 +1,42 @@
1### verbose.mk --- Makefile fragment for GNU Emacs
2
3## Copyright (C) 2021 Free Software Foundation, Inc.
4
5## This file is part of GNU Emacs.
6
7## GNU Emacs is free software: you can redistribute it and/or modify
8## it under the terms of the GNU General Public License as published by
9## the Free Software Foundation, either version 3 of the License, or
10## (at your option) any later version.
11##
12## GNU Emacs is distributed in the hope that it will be useful,
13## but WITHOUT ANY WARRANTY; without even the implied warranty of
14## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15## GNU General Public License for more details.
16##
17## You should have received a copy of the GNU General Public License
18## along with GNU Emacs. If not, see <https://www.gnu.org/licenses/>.
19
20# 'make' verbosity.
21V = @AM_DEFAULT_VERBOSITY@
22ifeq (${V},1)
23AM_V_AR =
24AM_V_at =
25AM_V_CC =
26AM_V_CCLD =
27AM_V_ELC =
28AM_V_GEN =
29AM_V_GLOBALS =
30AM_V_NO_PD =
31AM_V_RC =
32else
33AM_V_AR = @echo " AR " $@;
34AM_V_at = @
35AM_V_CC = @echo " CC " $@;
36AM_V_CCLD = @echo " CCLD " $@;
37AM_V_ELC = @echo " ELC " $@;
38AM_V_GEN = @echo " GEN " $@;
39AM_V_GLOBALS = @echo " GEN " globals.h;
40AM_V_NO_PD = --no-print-directory
41AM_V_RC = @echo " RC " $@;
42endif