summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorMichael Stapelberg <michael@stapelberg.de>2013-06-18 18:14:38 +0200
committerMichael Stapelberg <michael@stapelberg.de>2013-06-18 18:14:38 +0200
commitcf417ffeb1423024d109da57ba71796b42ab5ce3 (patch)
tree2f9e199d8df72c0b2f64fcdd953669514e3e4bff /Makefile
parent86d1b5df7a0f20b02b5e09ad9cdbf898a65e07c5 (diff)
Makefile: use .SILENT and support V=1 for verbose builds
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile11
1 files changed, 8 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 671e27a..0c5bda4 100644
--- a/Makefile
+++ b/Makefile
@@ -45,6 +45,11 @@ CFLAGS+=-I/usr/pkg/include/
LDFLAGS+=-L/usr/pkg/lib/
endif
+V ?= 0
+ifeq ($(V),0)
+# Don’t print command lines which are run
+.SILENT:
+endif
CFLAGS+=$(EXTRA_CFLAGS)
@@ -56,17 +61,17 @@ OBJS:=$(wildcard src/*.c *.c)
OBJS:=$(OBJS:.c=.o)
src/%.o: src/%.c include/i3status.h
- @$(CC) $(CPPFLAGS) $(CFLAGS) -c -o $@ $<
+ $(CC) $(CPPFLAGS) $(CFLAGS) -c -o $@ $<
@echo " CC $<"
%.o: %.c include/%.h
- @$(CC) $(CPPFLAGS) $(CFLAGS) -c -o $@ $<
+ $(CC) $(CPPFLAGS) $(CFLAGS) -c -o $@ $<
@echo " CC $<"
all: i3status manpage
i3status: ${OBJS}
- @$(CC) $(LDFLAGS) -o $@ $^ $(LIBS)
+ $(CC) $(LDFLAGS) -o $@ $^ $(LIBS)
@echo " LD $@"
clean: