diff options
| author | Glenn Morris | 2021-03-06 16:28:46 -0800 |
|---|---|---|
| committer | Glenn Morris | 2021-03-06 16:28:46 -0800 |
| commit | d632622b5aac5ff776e1b5048f29aeaf3ceaf553 (patch) | |
| tree | e6a3ce1c7feea935b2fdfa7b4198f595e617cde9 /src | |
| parent | 9cbdf20316e1cec835a7dfe28877142e437976f4 (diff) | |
| download | emacs-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.in | 36 | ||||
| -rw-r--r-- | src/verbose.mk.in | 42 |
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. |
| 30 | srcdir = @srcdir@ | 30 | srcdir = @srcdir@ |
| 31 | top_srcdir = @top_srcdir@ | 31 | top_srcdir = @top_srcdir@ |
| 32 | top_builddir = @top_builddir@ | ||
| 32 | # MinGW CPPFLAGS may use this. | 33 | # MinGW CPPFLAGS may use this. |
| 33 | abs_top_srcdir=@abs_top_srcdir@ | 34 | abs_top_srcdir=@abs_top_srcdir@ |
| 34 | VPATH = $(srcdir) | 35 | VPATH = $(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. |
| 341 | DO_CODESIGN=$(patsubst aarch64-apple-darwin%,yes,@configuration@) | 342 | DO_CODESIGN=$(patsubst aarch64-apple-darwin%,yes,@configuration@) |
| 342 | 343 | ||
| 343 | # 'make' verbosity. | 344 | -include ${top_builddir}/src/verbose.mk |
| 344 | AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ | ||
| 345 | |||
| 346 | AM_V_CC = $(am__v_CC_@AM_V@) | ||
| 347 | am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@) | ||
| 348 | am__v_CC_0 = @echo " CC " $@; | ||
| 349 | am__v_CC_1 = | ||
| 350 | |||
| 351 | AM_V_CCLD = $(am__v_CCLD_@AM_V@) | ||
| 352 | am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@) | ||
| 353 | am__v_CCLD_0 = @echo " CCLD " $@; | ||
| 354 | am__v_CCLD_1 = | ||
| 355 | |||
| 356 | AM_V_GEN = $(am__v_GEN_@AM_V@) | ||
| 357 | am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) | ||
| 358 | am__v_GEN_0 = @echo " GEN " $@; | ||
| 359 | am__v_GEN_1 = | ||
| 360 | |||
| 361 | AM_V_at = $(am__v_at_@AM_V@) | ||
| 362 | am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) | ||
| 363 | am__v_at_0 = @ | ||
| 364 | am__v_at_1 = | ||
| 365 | |||
| 366 | AM_V_NO_PD = $(am__v_NO_PD_@AM_V@) | ||
| 367 | am__v_NO_PD_ = $(am__v_NO_PD_@AM_DEFAULT_V@) | ||
| 368 | am__v_NO_PD_0 = --no-print-directory | ||
| 369 | am__v_NO_PD_1 = | ||
| 370 | 345 | ||
| 371 | bootstrap_exe = ../src/bootstrap-emacs$(EXEEXT) | 346 | bootstrap_exe = ../src/bootstrap-emacs$(EXEEXT) |
| 372 | ifeq ($(DUMPING),pdumper) | 347 | ifeq ($(DUMPING),pdumper) |
| @@ -621,11 +596,6 @@ buildobj.h: Makefile | |||
| 621 | 596 | ||
| 622 | GLOBAL_SOURCES = $(base_obj:.o=.c) $(NS_OBJC_OBJ:.o=.m) | 597 | GLOBAL_SOURCES = $(base_obj:.o=.c) $(NS_OBJC_OBJ:.o=.m) |
| 623 | 598 | ||
| 624 | AM_V_GLOBALS = $(am__v_GLOBALS_@AM_V@) | ||
| 625 | am__v_GLOBALS_ = $(am__v_GLOBALS_@AM_DEFAULT_V@) | ||
| 626 | am__v_GLOBALS_0 = @echo " GEN " globals.h; | ||
| 627 | am__v_GLOBALS_1 = | ||
| 628 | |||
| 629 | gl-stamp: $(libsrc)/make-docfile$(EXEEXT) $(GLOBAL_SOURCES) | 599 | gl-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 | ||
| 726 | distclean: bootstrap-clean | 696 | distclean: 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 | ||
| 730 | maintainer-clean: distclean | 700 | maintainer-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. | ||
| 21 | V = @AM_DEFAULT_VERBOSITY@ | ||
| 22 | ifeq (${V},1) | ||
| 23 | AM_V_AR = | ||
| 24 | AM_V_at = | ||
| 25 | AM_V_CC = | ||
| 26 | AM_V_CCLD = | ||
| 27 | AM_V_ELC = | ||
| 28 | AM_V_GEN = | ||
| 29 | AM_V_GLOBALS = | ||
| 30 | AM_V_NO_PD = | ||
| 31 | AM_V_RC = | ||
| 32 | else | ||
| 33 | AM_V_AR = @echo " AR " $@; | ||
| 34 | AM_V_at = @ | ||
| 35 | AM_V_CC = @echo " CC " $@; | ||
| 36 | AM_V_CCLD = @echo " CCLD " $@; | ||
| 37 | AM_V_ELC = @echo " ELC " $@; | ||
| 38 | AM_V_GEN = @echo " GEN " $@; | ||
| 39 | AM_V_GLOBALS = @echo " GEN " globals.h; | ||
| 40 | AM_V_NO_PD = --no-print-directory | ||
| 41 | AM_V_RC = @echo " RC " $@; | ||
| 42 | endif | ||