aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPekka Enberg <penberg@cs.helsinki.fi>2010-02-26 20:48:56 +0200
committerLinus Torvalds <torvalds@linux-foundation.org>2010-02-26 17:21:27 -0800
commit54a12c01efdae9d6363b5467599ae446698d160c (patch)
tree6f6db1674eb7a7bbc91d97dc8ed877b02a9045bf
parent6139ec4e731405847c7a731678fb6cac315bd629 (diff)
downloaduemacs-54a12c01efdae9d6363b5467599ae446698d160c.tar.gz
uemacs: make build output more readable
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 <tfransosi@gmail.com> Signed-off-by: Pekka Enberg <penberg@cs.helsinki.fi> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
-rw-r--r--makefile21
1 files 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