]> code.delx.au - gnu-emacs/commitdiff
--enable-silent-warnings now suppresses more chatter.
authorPaul Eggert <eggert@cs.ucla.edu>
Mon, 1 Sep 2014 09:49:51 +0000 (02:49 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Mon, 1 Sep 2014 09:49:51 +0000 (02:49 -0700)
* INSTALL, etc/NEWS: Document this.
* lib-src/Makefile.in (AM_DEFAULT_VERBOSITY, AM_V_CC, am__v_CC_)
(am__v_CC_0, am__v_CC_1, AM_V_CCLD, am__v_CCLD_, am__v_CCLD_0)
(am__v_CCLD_1): New macros, taken from Automake.
(regex.o, etags${EXEEXT}, ctags${EXEEXT}, ebrowse${EXEEXT})
(profile${EXEEXT}, make-docfile${EXEEXT}, movemail${EXEEXT})
(pop.o, emacsclient${EXEEXT}, emacsclientw${EXEEXT})
(emacsclientw${EXEEXT}, ntlib.o, hexl${EXEEXT})
(update-game-score${EXEEXT}): Use them.
* lwlib/Makefile.in (AM_DEFAULT_VERBOSITY, AM_V_CC, am__v_CC_)
(am__v_CC_0, am__v_CC_1): New macros, taken from Automake.
(.c.o): Use them.
* oldXMenu/Makefile.in (AM_DEFAULT_VERBOSITY, AM_V_CC, am__v_CC_)
(am__v_CC_0, am__v_CC_1): New macros, taken from Automake.
(.c.o): Use them.
* src/Makefile.in (AM_DEFAULT_VERBOSITY, AM_V_CC, am__v_CC_)
(am__v_CC_0, am__v_CC_1, AM_V_CCLD, am__v_CCLD_, am__v_CCLD_0)
(am__v_CCLD_1): New macros, taken from Automake.
(.c.o, .m.o, temacs$(EXEEXT)): Use them.

12 files changed:
ChangeLog
INSTALL
etc/ChangeLog
etc/NEWS
lib-src/ChangeLog
lib-src/Makefile.in
lwlib/ChangeLog
lwlib/Makefile.in
oldXMenu/ChangeLog
oldXMenu/Makefile.in
src/ChangeLog
src/Makefile.in

index d3039bed1c77ca5721d8ee2c230816528d7bfa14..7bf2a572f980844dde86d97e5635f1d92c9e8a98 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2014-09-01  Paul Eggert  <eggert@cs.ucla.edu>
 
+       --enable-silent-warnings now suppresses more chatter.
+       * INSTALL: Document this.
+
        Clean up extern decls a bit.
        * configure.ac (WERROR_CFLAGS): Don't disable -Wnested-externs.
        While we're at it, don't disable -Wlogical-op either.
diff --git a/INSTALL b/INSTALL
index 94fa6ba653b5305c5e0db22d579edc96b12a87a6..4bda46cfbc0e6053801ad1cfc4a343d9ed091877 100644 (file)
--- a/INSTALL
+++ b/INSTALL
@@ -328,6 +328,11 @@ and is useful with GNU-compatible compilers.  On a recent GNU system
 there should be no warnings; on older and on non-GNU systems the
 generated warnings may still be useful.
 
+Use --enable-silent-rules to cause 'make' to chatter less.  This is
+helpful when combined with options like --enable-gcc-warnings that
+generate long shell-command lines.  'make V=0' also suppresses the
+chatter.
+
 Use --enable-link-time-optimization to enable link-time optimizer.  If
 you're using GNU compiler, this feature is supported since version 4.5.0.
 If `configure' can determine number of online CPUS on your system, final
index 60f9edbc6cee515f7d5ee76ad5b9b107139ea358..4c8b5b1767ebe41cdddd1a9b59e92b9ad93a8b58 100644 (file)
@@ -1,3 +1,8 @@
+2014-09-01  Paul Eggert  <eggert@cs.ucla.edu>
+
+       --enable-silent-warnings now suppresses more chatter.
+       * NEWS: Document this.
+
 2014-08-29  Leo Liu  <sdl.web@gmail.com>
 
        * NEWS: Mention (:append FUN) to minibuffer-with-setup-hook.
index 7b2ee186e952983c76ba542a604e50cc8df006b1..100214f1108bc93f882bfc66866d461248ca5ffd 100644 (file)
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -40,6 +40,9 @@ or by sticking with Emacs 24.4.
 ** The configure option `--with-pkg-config-prog' has been removed.
 Use './configure PKG_CONFIG=/full/name/of/pkg-config' if you need to.
 
+** The configure option '--enable-silent-rules' and the command
+'make V=0' now do a better job of suppressing chatter.
+
 \f
 * Startup Changes in Emacs 24.5
 
index bf4d500921bb2e5ab4e76deb10469c083ef90f56..b96fb1920276a81e3671ce2b412cde2994e88f02 100644 (file)
@@ -1,5 +1,15 @@
 2014-09-01  Paul Eggert  <eggert@cs.ucla.edu>
 
+       --enable-silent-warnings now suppresses more chatter.
+       * Makefile.in (AM_DEFAULT_VERBOSITY, AM_V_CC, am__v_CC_)
+       (am__v_CC_0, am__v_CC_1, AM_V_CCLD, am__v_CCLD_, am__v_CCLD_0)
+       (am__v_CCLD_1): New macros, taken from Automake.
+       (regex.o, etags${EXEEXT}, ctags${EXEEXT}, ebrowse${EXEEXT})
+       (profile${EXEEXT}, make-docfile${EXEEXT}, movemail${EXEEXT})
+       (pop.o, emacsclient${EXEEXT}, emacsclientw${EXEEXT})
+       (emacsclientw${EXEEXT}, ntlib.o, hexl${EXEEXT})
+       (update-game-score${EXEEXT}): Use them.
+
        * etags.c (emacs_strchr, emacs_strrchr): Remove.
        All uses replaced by strchr and strrchr, which are on all
        target platforms now.
index 7eb13f667ec05b8a23f697d7f647bc8363e2d4f5..fe101047dea3c525075491dbb671db66d3f33e42 100644 (file)
@@ -45,6 +45,19 @@ UPDATE_MANIFEST = @UPDATE_MANIFEST@
 # Program name transformation.
 TRANSFORM = @program_transform_name@
 
+# 'make' verbosity.
+AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
+
+AM_V_CC = $(am__v_CC_@AM_V@)
+am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@)
+am__v_CC_0 = @echo "  CC      " $@;
+am__v_CC_1 =
+
+AM_V_CCLD = $(am__v_CCLD_@AM_V@)
+am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@)
+am__v_CCLD_0 = @echo "  CCLD    " $@;
+am__v_CCLD_1 =
+
 # ==================== Where To Install Things ====================
 
 # Location to install Emacs.app under GNUstep / Mac OS X.
@@ -311,7 +324,7 @@ TAGS: etags${EXEEXT}
        $(MAKE) -C ../lib libgnu.a
 
 regex.o: $(srcdir)/../src/regex.c $(srcdir)/../src/regex.h $(config_h)
-       ${CC} -c ${CPP_CFLAGS} $<
+       $(AM_V_CC)$(CC) -c $(CPP_CFLAGS) $<
 
 
 etags_deps = ${srcdir}/etags.c regex.o $(NTLIB) $(config_h)
@@ -319,41 +332,41 @@ etags_cflags = -DEMACS_NAME="\"GNU Emacs\"" -DVERSION="\"${version}\"" -o $@
 etags_libs = regex.o $(LOADLIBES) $(NTLIB)
 
 etags${EXEEXT}: ${etags_deps}
-       $(CC) ${ALL_CFLAGS} $(etags_cflags) $< $(etags_libs)
+       $(AM_V_CCLD)$(CC) ${ALL_CFLAGS} $(etags_cflags) $< $(etags_libs)
 
 ## ctags.c is distinct from etags.c so that parallel makes do not write two
 ## etags.o files on top of each other.
 ## FIXME?
 ## Can't we use a wrapper that calls 'etags --ctags'?
 ctags${EXEEXT}: ${srcdir}/ctags.c ${etags_deps}
-       $(CC) ${ALL_CFLAGS} $(etags_cflags) $< $(etags_libs)
+       $(AM_V_CCLD)$(CC) ${ALL_CFLAGS} $(etags_cflags) $< $(etags_libs)
 
 ebrowse${EXEEXT}: ${srcdir}/ebrowse.c ${srcdir}/../lib/min-max.h $(NTLIB) \
                    $(config_h)
-       $(CC) ${ALL_CFLAGS} -DVERSION="\"${version}\"" \
+       $(AM_V_CCLD)$(CC) ${ALL_CFLAGS} -DVERSION="\"${version}\"" \
          $< $(LOADLIBES) $(NTLIB) -o $@
 
 profile${EXEEXT}: ${srcdir}/profile.c $(NTLIB) $(config_h)
-       $(CC) ${ALL_CFLAGS} $< \
+       $(AM_V_CCLD)$(CC) ${ALL_CFLAGS} $< \
          $(LOADLIBES) $(NTLIB) $(LIB_CLOCK_GETTIME) -o $@
 
 make-docfile${EXEEXT}: ${srcdir}/make-docfile.c $(NTLIB) $(config_h)
-       $(CC) ${ALL_CFLAGS} $< $(LOADLIBES) $(NTLIB) -o $@
+       $(AM_V_CCLD)$(CC) ${ALL_CFLAGS} $< $(LOADLIBES) $(NTLIB) -o $@
 
 movemail${EXEEXT}: ${srcdir}/movemail.c pop.o $(NTLIB) $(config_h)
-       $(CC) ${ALL_CFLAGS} ${MOVE_FLAGS} $< pop.o \
+       $(AM_V_CCLD)$(CC) ${ALL_CFLAGS} ${MOVE_FLAGS} $< pop.o \
          $(LOADLIBES) $(NTLIB) $(LIBS_MOVE) -o $@
 
 pop.o: ${srcdir}/pop.c ${srcdir}/pop.h ${srcdir}/../lib/min-max.h $(config_h)
-       $(CC) -c ${CPP_CFLAGS} ${MOVE_FLAGS} $<
+       $(AM_V_CC)$(CC) -c ${CPP_CFLAGS} ${MOVE_FLAGS} $<
 
 emacsclient${EXEEXT}: ${srcdir}/emacsclient.c $(NTLIB) $(config_h)
-       $(CC) ${ALL_CFLAGS} $< \
+       $(AM_V_CCLD)$(CC) ${ALL_CFLAGS} $< \
           -DVERSION="\"${version}\"" $(NTLIB) $(LOADLIBES) $(LIB_FDATASYNC) \
           $(LIB_WSOCK32) $(LIBS_ECLIENT) -o $@
 
 emacsclientw${EXEEXT}: ${srcdir}/emacsclient.c $(NTLIB) $(CLIENTRES) $(config_h)
-       $(CC) ${ALL_CFLAGS} $(CLIENTRES) -mwindows $< \
+       $(AM_V_CCLD)$(CC) ${ALL_CFLAGS} $(CLIENTRES) -mwindows $< \
           -DVERSION="\"${version}\"" $(LOADLIBES) $(LIB_FDATASYNC) \
           $(LIB_WSOCK32) $(LIBS_ECLIENT) -o $@
 
@@ -365,13 +378,14 @@ NTDEPS = $(NTINC)/ms-w32.h $(NTINC)/sys/stat.h $(NTINC)/inttypes.h \
 # The dependency on $(NTDEPS) is a trick intended to cause recompile of
 # programs on MinGW whenever some private header in nt/inc is modified.
 ntlib.o: ${srcdir}/ntlib.c ${srcdir}/ntlib.h $(NTDEPS)
-       $(CC) -c ${CPP_CFLAGS} $<
+       $(AM_V_CC)$(CC) -c ${CPP_CFLAGS} $<
 
 hexl${EXEEXT}: ${srcdir}/hexl.c $(NTLIB) $(config_h)
-       $(CC) ${ALL_CFLAGS} $< $(LOADLIBES) -o $@
+       $(AM_V_CCLD)$(CC) ${ALL_CFLAGS} $< $(LOADLIBES) -o $@
 
 update-game-score${EXEEXT}: ${srcdir}/update-game-score.c $(NTLIB) $(config_h)
-       $(CC) ${ALL_CFLAGS} -DHAVE_SHARED_GAME_DIR="\"$(gamedir)\"" \
+       $(AM_V_CCLD)$(CC) ${ALL_CFLAGS} \
+         -DHAVE_SHARED_GAME_DIR="\"$(gamedir)\"" \
          $< $(LOADLIBES) $(NTLIB) -o $@
 
 emacsclient.res: $(NTINC)/../emacsclient.rc
index 11ee10edac2d43385372c4b1ea8a33735e0053cf..c832dd39927f7128f6773b143f460d32c0905a75 100644 (file)
@@ -1,3 +1,10 @@
+2014-09-01  Paul Eggert  <eggert@cs.ucla.edu>
+
+       --enable-silent-warnings now suppresses more chatter.
+       * Makefile.in (AM_DEFAULT_VERBOSITY, AM_V_CC, am__v_CC_)
+       (am__v_CC_0, am__v_CC_1): New macros, taken from Automake.
+       (.c.o): Use them.
+
 2014-07-15  Dmitry Antipov  <dmantipov@yandex.ru>
 
        * lwlib.h (toplevel): Use unsigned int for LWLIB_ID.
index 516b3286951a043f0ad8e02a1c7f24ee8ba159d8..b01e69c43924e92465d839097d3628a0f916fef1 100644 (file)
@@ -51,6 +51,14 @@ TOOLKIT_OBJS = $(@X_TOOLKIT_TYPE@_OBJS)
 
 OBJS = lwlib.o $(TOOLKIT_OBJS) lwlib-utils.o
 
+# 'make' verbosity.
+AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
+
+AM_V_CC = $(am__v_CC_@AM_V@)
+am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@)
+am__v_CC_0 = @echo "  CC      " $@;
+am__v_CC_1 =
+
 DEPDIR = deps
 ## -MMD -MF $(DEPDIR)/$*.d if AUTO_DEPEND; else empty.
 DEPFLAGS = @DEPFLAGS@
@@ -73,7 +81,7 @@ all: liblw.a
 
 .c.o:
        @$(MKDEPDIR)
-       $(CC) -c $(CPPFLAGS) $(ALL_CFLAGS) $<
+       $(AM_V_CC)$(CC) -c $(CPPFLAGS) $(ALL_CFLAGS) $<
 
 liblw.a: $(OBJS)
        rm -f $@
index 1d98a544d25195c1981fcb4d51c45938b9c487c2..e19c695c217af1656509db2014d630bf495863a4 100644 (file)
@@ -1,3 +1,10 @@
+2014-09-01  Paul Eggert  <eggert@cs.ucla.edu>
+
+       --enable-silent-warnings now suppresses more chatter.
+       * Makefile.in (AM_DEFAULT_VERBOSITY, AM_V_CC, am__v_CC_)
+       (am__v_CC_0, am__v_CC_1): New macros, taken from Automake.
+       (.c.o): Use them.
+
 2014-07-12  Dmitry Antipov  <dmantipov@yandex.ru>
 
        * XMenuInt.h (XDeleteAssoc): Remove duplicated prototype to
index bfa7d97912a9dba2ea37e489194626fcf487d486..230828157e829c2dd47426f9b09b5bafbaf0ac02 100644 (file)
@@ -93,6 +93,14 @@ OBJS =  Activate.o \
 all: libXMenu11.a
 .PHONY: all
 
+# 'make' verbosity.
+AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
+
+AM_V_CC = $(am__v_CC_@AM_V@)
+am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@)
+am__v_CC_0 = @echo "  CC      " $@;
+am__v_CC_1 =
+
 DEPDIR = deps
 ## -MMD -MF $(DEPDIR)/$*.d if AUTO_DEPEND; else empty.
 DEPFLAGS = @DEPFLAGS@
@@ -107,7 +115,7 @@ ALL_CFLAGS=$(C_SWITCH_SYSTEM) $(C_SWITCH_MACHINE) \
 
 .c.o:
        @$(MKDEPDIR)
-       $(CC) -c ${ALL_CFLAGS} $<
+       $(AM_V_CC)$(CC) -c ${ALL_CFLAGS} $<
 
 libXMenu11.a: $(OBJS) $(EXTRA)
        $(RM) $@
index 0bf0842690b6d45d7a33baee9d7f3e1e0703fb8c..35f0ba03f21dc91ff4a3502d98e1add76fcb3f3c 100644 (file)
@@ -1,5 +1,11 @@
 2014-09-01  Paul Eggert  <eggert@cs.ucla.edu>
 
+       --enable-silent-warnings now suppresses more chatter.
+       * Makefile.in (AM_DEFAULT_VERBOSITY, AM_V_CC, am__v_CC_)
+       (am__v_CC_0, am__v_CC_1, AM_V_CCLD, am__v_CCLD_, am__v_CCLD_0)
+       (am__v_CCLD_1): New macros, taken from Automake.
+       (.c.o, .m.o, temacs$(EXEEXT)): Use them.
+
        Clean up extern decls a bit.
        * bytecode.c: Include blockinput.h and keyboard.h rather
        than rolling their APIs by hand.
index 3f1192fe3ff80e910fa9b054667b68ad4f501f75..3fe1b1c83c2309e987e2ee014cc6b218f6b09bbf 100644 (file)
@@ -304,6 +304,19 @@ UNEXEC_OBJ = @UNEXEC_OBJ@
 
 CANNOT_DUMP=@CANNOT_DUMP@
 
+# 'make' verbosity.
+AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
+
+AM_V_CC = $(am__v_CC_@AM_V@)
+am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@)
+am__v_CC_0 = @echo "  CC      " $@;
+am__v_CC_1 =
+
+AM_V_CCLD = $(am__v_CCLD_@AM_V@)
+am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@)
+am__v_CCLD_0 = @echo "  CCLD    " $@;
+am__v_CCLD_1 =
+
 DEPDIR=deps
 ## -MMD -MF $(DEPDIR)/$*.d if AUTO_DEPEND; else empty.
 DEPFLAGS=@DEPFLAGS@
@@ -334,10 +347,10 @@ ALL_OBJC_CFLAGS=$(ALL_CFLAGS) $(GNU_OBJC_CFLAGS)
 .SUFFIXES: .m
 .c.o:
        @$(MKDEPDIR)
-       $(CC) -c $(CPPFLAGS) $(ALL_CFLAGS) $(PROFILING_CFLAGS) $<
+       $(AM_V_CC)$(CC) -c $(CPPFLAGS) $(ALL_CFLAGS) $(PROFILING_CFLAGS) $<
 .m.o:
        @$(MKDEPDIR)
-       $(CC) -c $(CPPFLAGS) $(ALL_OBJC_CFLAGS) $(PROFILING_CFLAGS) $<
+       $(AM_V_CC)$(CC) -c $(CPPFLAGS) $(ALL_OBJC_CFLAGS) $(PROFILING_CFLAGS) $<
 
 ## lastfile must follow all files whose initialized data areas should
 ## be dumped as pure by dump-emacs.
@@ -491,7 +504,7 @@ $(lib)/libgnu.a: $(config_h)
 ## to start if Vinstallation_directory has the wrong value.
 temacs$(EXEEXT): $(LIBXMENU) $(ALLOBJS) \
                 $(lib)/libgnu.a $(EMACSRES)
-       $(CC) $(ALL_CFLAGS) $(TEMACS_LDFLAGS) $(LDFLAGS) \
+       $(AM_V_CCLD)$(CC) $(ALL_CFLAGS) $(TEMACS_LDFLAGS) $(LDFLAGS) \
          -o temacs $(ALLOBJS) $(lib)/libgnu.a $(W32_RES_LINK) $(LIBES)
        $(MKDIR_P) $(etc)
        test "$(CANNOT_DUMP)" = "yes" || \