From d6f027ef3474bbc93d06865b0031bb6aae4fc031 Mon Sep 17 00:00:00 2001 From: "Ondrej Zajicek (work)" Date: Tue, 17 May 2016 17:59:38 +0200 Subject: [PATCH] Make: Silence echo in verbose mode --- Makefile.in | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/Makefile.in b/Makefile.in index c2f8ad4e..cee217be 100644 --- a/Makefile.in +++ b/Makefile.in @@ -41,8 +41,10 @@ ifeq ($(objdir),.) endif ifeq ($(VERBOSE),) + E:=@ Q:=@ else + E:=@\# Q:= endif @@ -85,20 +87,20 @@ include $(addsuffix /Makefile,$(addprefix $(srcdir)/,$(dirs))) # Generic rules $(objdir)/%.o: $(srcdir)/%.c $(objdir)/.dir-stamp $(objdir)/sysdep/paths.h - $(Q)echo CC -o $@ -c $< + $(E)echo CC -o $@ -c $< $(Q)$(CC) $(CFLAGS) -MMD -MP -o $@ -c $< $(objdir)/%.o: $(objdir)/%.c $(objdir)/.dir-stamp $(objdir)/sysdep/paths.h - $(Q)echo CC -o $@ -c $< + $(E)echo CC -o $@ -c $< $(Q)$(CC) $(CFLAGS) -MMD -MP -o $@ -c $< $(objdir)/.dir-stamp: - $(Q)echo MKDIR -p $(addprefix $(objdir)/,$(dirs) doc) + $(E)echo MKDIR -p $(addprefix $(objdir)/,$(dirs) doc) $(Q)mkdir -p $(addprefix $(objdir)/,$(dirs) doc) $(Q)touch $@ $(client) $(daemon): - $(Q)echo LD $(LDFLAGS) -o $@ $^ $(LIBS) + $(E)echo LD $(LDFLAGS) -o $@ $^ $(LIBS) $(Q)$(CC) $(LDFLAGS) -o $@ $^ $(LIBS) $(objdir)/sysdep/paths.h: Makefile