From 54a12c01efdae9d6363b5467599ae446698d160c Mon Sep 17 00:00:00 2001 From: Pekka Enberg Date: Fri, 26 Feb 2010 20:48:56 +0200 Subject: [PATCH] uemacs: make build output more readable MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This patch makes the build output look like what we have in the linux kernel so that warnings stand out better: CC ansi.o CC basic.o CC bind.o CC buffer.o buffer.c: In function ‘nextbuffer’: buffer.c:43: warning: ‘bp’ may be used uninitialized in this function CC crypt.o CC display.o [...] Cc: Thiago Farina Signed-off-by: Pekka Enberg Signed-off-by: Linus Torvalds --- makefile | 21 ++++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) diff --git a/makefile b/makefile index 60b8aa6..878ae21 100644 --- a/makefile +++ b/makefile @@ -1,5 +1,17 @@ # makefile for emacs, updated Sun Apr 28 17:59:07 EET DST 1996 +# Make the build silent by default +V = + +ifeq ($(strip $(V)),) + E = @echo + Q = @ +else + E = @\# + Q = +endif +export E Q + SRC=ansi.c basic.c bind.c buffer.c crypt.c display.c eval.c exec.c \ file.c fileio.c ibmpc.c input.c isearch.c line.c lock.c main.c \ pklock.c posix.c random.c region.c search.c spawn.c tcap.c \ @@ -31,7 +43,8 @@ BINDIR=/usr/bin LIBDIR=/usr/lib em: ${OBJ} - ${CC} ${DEFINES} -o em ${OBJ} ${LIBS} + $(E) " LINK " $@ + $(Q) ${CC} ${DEFINES} -o em ${OBJ} ${LIBS} SPARSE=sparse SPARSE_FLAGS=-D__LITTLE_ENDIAN__ -D__x86_64__ -D__linux__ -D__unix__ @@ -40,7 +53,8 @@ sparse: $(SPARSE) $(SPARSE_FLAGS) $(DEFINES) $(SRC) clean: - rm -f core lintout makeout tags makefile.bak *.o + $(E) " CLEAN" + $(Q) rm -f core lintout makeout tags makefile.bak *.o install: em strip em @@ -93,7 +107,8 @@ depend: ${SRC} @echo '# see make depend above' >>makefile .c.o: - ${CC} ${CFLAGS} ${DEFINES} -c $*.c + $(E) " CC " $@ + $(Q) ${CC} ${CFLAGS} ${DEFINES} -c $*.c # DO NOT DELETE THIS LINE -- make depend uses it