Makefile: add verbosity control
This commit is contained in:
parent
6de20977fb
commit
7c1678ee98
16
Makefile
16
Makefile
|
@ -8,6 +8,22 @@
|
|||
|
||||
PREFIX ?= /usr/local
|
||||
|
||||
# ----- Verbosity control -----------------------------------------------------
|
||||
|
||||
CPP := $(CPP) # make sure changing CC won't affect CPP
|
||||
|
||||
CC_normal := $(CC)
|
||||
|
||||
CC_quiet = @echo " CC " $@ && $(CC_normal)
|
||||
|
||||
ifeq ($(V),1)
|
||||
CC = $(CC_normal)
|
||||
else
|
||||
CC = $(CC_quiet)
|
||||
endif
|
||||
|
||||
# ----- Rules -----------------------------------------------------------------
|
||||
|
||||
.PHONY: all test clean install uninstall
|
||||
.SECONDARY:
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user