Make autoconf-based build quiet by default.
authorSam Clegg <sbc@chromium.org>
Thu, 19 Jun 2014 00:40:09 -0400
changeset 887660edb019f0fe
parent 8875 c65a4cfdd8b2
child 8877 0d691f3734ac
Make autoconf-based build quiet by default.

Add V=1 to the make command line will show the full commands but by default
we just show the tool-type and the output file. This is generally much easier
on the eye and makes warnings and errors more clearly visible.
Makefile.in
configure
configure.in
     1.1 --- a/Makefile.in	Wed Jun 18 10:04:21 2014 -0300
     1.2 +++ b/Makefile.in	Thu Jun 19 00:40:09 2014 -0400
     1.3 @@ -42,6 +42,15 @@
     1.4  SRC_DIST = *.txt acinclude Android.mk autogen.sh android-project build-scripts cmake configure configure.in debian include Makefile.* sdl2-config.in sdl2.m4 sdl2.pc.in SDL2.spec.in src test VisualC.html VisualC Xcode Xcode-iOS
     1.5  GEN_DIST = SDL2.spec
     1.6  
     1.7 +ifneq ($V,1)
     1.8 +RUN_CMD_AR     = @echo "  AR    " $@;
     1.9 +RUN_CMD_CC     = @echo "  CC    " $@;
    1.10 +RUN_CMD_CXX    = @echo "  CXX   " $@;
    1.11 +RUN_CMD_LTLINK = @echo "  LTLINK" $@;
    1.12 +RUN_CMD_RANLIB = @echo "  RANLIB" $@;
    1.13 +LIBTOOL += --quiet
    1.14 +endif
    1.15 +
    1.16  HDRS = \
    1.17  	SDL.h \
    1.18  	SDL_assert.h \
    1.19 @@ -129,15 +138,15 @@
    1.20  .PHONY: all update-revision install install-bin install-hdrs install-lib install-data uninstall uninstall-bin uninstall-hdrs uninstall-lib uninstall-data clean distclean dist $(OBJECTS:.lo=.d)
    1.21  
    1.22  $(objects)/$(TARGET): $(OBJECTS) $(VERSION_OBJECTS)
    1.23 -	$(LIBTOOL) --tag=CC --mode=link $(CC) -o $@ $(OBJECTS) $(VERSION_OBJECTS) $(LDFLAGS) $(EXTRA_LDFLAGS) $(LT_LDFLAGS)
    1.24 +	$(RUN_CMD_LTLINK)$(LIBTOOL) --tag=CC --mode=link $(CC) -o $@ $(OBJECTS) $(VERSION_OBJECTS) $(LDFLAGS) $(EXTRA_LDFLAGS) $(LT_LDFLAGS)
    1.25  
    1.26  $(objects)/$(SDLMAIN_TARGET): $(SDLMAIN_OBJECTS)
    1.27 -	$(AR) cru $@ $(SDLMAIN_OBJECTS)
    1.28 -	$(RANLIB) $@
    1.29 +	$(RUN_CMD_AR)$(AR) cru $@ $(SDLMAIN_OBJECTS)
    1.30 +	$(RUN_CMD_RANLIB)$(RANLIB) $@
    1.31  
    1.32  $(objects)/$(SDLTEST_TARGET): $(SDLTEST_OBJECTS)
    1.33 -	$(AR) cru $@ $(SDLTEST_OBJECTS)
    1.34 -	$(RANLIB) $@
    1.35 +	$(RUN_CMD_AR)$(AR) cru $@ $(SDLTEST_OBJECTS)
    1.36 +	$(RUN_CMD_RANLIB)$(RANLIB) $@
    1.37  
    1.38  install: all install-bin install-hdrs install-lib install-data
    1.39  install-bin:
     2.1 --- a/configure	Wed Jun 18 10:04:21 2014 -0300
     2.2 +++ b/configure	Thu Jun 19 00:40:09 2014 -0400
     2.3 @@ -23302,7 +23302,7 @@
     2.4      OBJECTS=`echo "$OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.'$EXT',$(objects)/\1.lo,g'`
     2.5      DEPENDS=`echo "$DEPENDS" | sed "s,^\\([^ ]*\\)/\\([^ ]*\\)\\.$EXT\\$,\\\\
     2.6  \\$(objects)/\\2.lo: \\1/\\2.$EXT\\\\
     2.7 -	\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
     2.8 +	\\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
     2.9  done
    2.10  
    2.11  VERSION_OBJECTS=`echo $VERSION_SOURCES`
    2.12 @@ -23317,14 +23317,14 @@
    2.13  SDLMAIN_OBJECTS=`echo "$SDLMAIN_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.o,g'`
    2.14  SDLMAIN_DEPENDS=`echo "$SDLMAIN_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.c,\\\\
    2.15  \\$(objects)/\\2.o: \\1/\\2.c\\\\
    2.16 -	\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
    2.17 +	\\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
    2.18  
    2.19  SDLTEST_OBJECTS=`echo $SDLTEST_SOURCES`
    2.20  SDLTEST_DEPENDS=`echo $SDLTEST_SOURCES`
    2.21  SDLTEST_OBJECTS=`echo "$SDLTEST_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.o,g'`
    2.22  SDLTEST_DEPENDS=`echo "$SDLTEST_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.c,\\\\
    2.23  \\$(objects)/\\2.o: \\1/\\2.c\\\\
    2.24 -	\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
    2.25 +	\\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
    2.26  
    2.27  # Set runtime shared library paths as needed
    2.28  
     3.1 --- a/configure.in	Wed Jun 18 10:04:21 2014 -0300
     3.2 +++ b/configure.in	Thu Jun 19 00:40:09 2014 -0400
     3.3 @@ -3228,7 +3228,7 @@
     3.4      OBJECTS=`echo "$OBJECTS" | sed 's,[[^ ]]*/\([[^ ]]*\)\.'$EXT',$(objects)/\1.lo,g'`
     3.5      DEPENDS=`echo "$DEPENDS" | sed "s,^\\([[^ ]]*\\)/\\([[^ ]]*\\)\\.$EXT\\$,\\\\
     3.6  \\$(objects)/\\2.lo: \\1/\\2.$EXT\\\\
     3.7 -	\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
     3.8 +	\\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
     3.9  done
    3.10  
    3.11  VERSION_OBJECTS=`echo $VERSION_SOURCES`
    3.12 @@ -3243,14 +3243,14 @@
    3.13  SDLMAIN_OBJECTS=`echo "$SDLMAIN_OBJECTS" | sed 's,[[^ ]]*/\([[^ ]]*\)\.c,$(objects)/\1.o,g'`
    3.14  SDLMAIN_DEPENDS=`echo "$SDLMAIN_DEPENDS" | sed "s,\\([[^ ]]*\\)/\\([[^ ]]*\\)\\.c,\\\\
    3.15  \\$(objects)/\\2.o: \\1/\\2.c\\\\
    3.16 -	\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
    3.17 +	\\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
    3.18  
    3.19  SDLTEST_OBJECTS=`echo $SDLTEST_SOURCES`
    3.20  SDLTEST_DEPENDS=`echo $SDLTEST_SOURCES`
    3.21  SDLTEST_OBJECTS=`echo "$SDLTEST_OBJECTS" | sed 's,[[^ ]]*/\([[^ ]]*\)\.c,$(objects)/\1.o,g'`
    3.22  SDLTEST_DEPENDS=`echo "$SDLTEST_DEPENDS" | sed "s,\\([[^ ]]*\\)/\\([[^ ]]*\\)\\.c,\\\\
    3.23  \\$(objects)/\\2.o: \\1/\\2.c\\\\
    3.24 -	\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
    3.25 +	\\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
    3.26  
    3.27  # Set runtime shared library paths as needed
    3.28