summary refs log tree commit diff
path: root/Makefile
diff options
context:
space:
mode:
authorQuentin Carbonneaux <quentin.carbonneaux@yale.edu>2016-03-29 21:50:58 -0400
committerQuentin Carbonneaux <quentin.carbonneaux@yale.edu>2016-03-29 21:53:23 -0400
commitbeec05cd3b6c85af3f3cc8956f4583d9027d569d (patch)
treed586424ff460120f8c414520529aa62106ce2dc2 /Makefile
parentfbbd2252aa3a25c045353d8b5210fc48d935a709 (diff)
downloadroux-beec05cd3b6c85af3f3cc8956f4583d9027d569d.tar.gz
do not echo compilation commands if verbose
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files 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: