diff options
author | Quentin Carbonneaux <quentin.carbonneaux@yale.edu> | 2016-03-29 21:50:58 -0400 |
---|---|---|
committer | Quentin Carbonneaux <quentin.carbonneaux@yale.edu> | 2016-03-29 21:53:23 -0400 |
commit | beec05cd3b6c85af3f3cc8956f4583d9027d569d (patch) | |
tree | d586424ff460120f8c414520529aa62106ce2dc2 /Makefile | |
parent | fbbd2252aa3a25c045353d8b5210fc48d935a709 (diff) | |
download | roux-beec05cd3b6c85af3f3cc8956f4583d9027d569d.tar.gz |
do not echo compilation commands if verbose
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 4 |
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: |