From beec05cd3b6c85af3f3cc8956f4583d9027d569d Mon Sep 17 00:00:00 2001 From: Quentin Carbonneaux Date: Tue, 29 Mar 2016 21:50:58 -0400 Subject: do not echo compilation commands if verbose --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 7c2bec8..447954b 100644 --- a/Makefile +++ b/Makefile @@ -9,11 +9,11 @@ OBJ = $(SRC:%.c=$(OBJDIR)/%.o) CFLAGS += -Wall -Wextra -std=c99 -g -pedantic $(OBJDIR)/$(BIN): $(OBJ) $(OBJDIR)/timestamp - @echo "ld $@" + @test -z "$(V)" || echo "ld $@" $(V)$(CC) $(LDFLAGS) $(OBJ) -o $@ $(OBJDIR)/%.o: %.c $(OBJDIR)/timestamp - @echo "cc $<" + @test -z "$(V)" || echo "cc $<" $(V)$(CC) $(CFLAGS) -c $< -o $@ $(OBJDIR)/timestamp: -- cgit 1.4.1