github.com/codeready-toolchain/api@v0.0.0-20240507023248-73662d6db2c5/make/verbose.mk (about) 1 # When you run make VERBOSE=1 (the default), executed commands will be printed 2 # before executed. If you run make VERBOSE=2 verbose flags are turned on and 3 # quiet flags are turned off for various commands. Use V_FLAG in places where 4 # you can toggle on/off verbosity using -v. Use Q_FLAG in places where you can 5 # toggle on/off quiet mode using -q. Use S_FLAG where you want to toggle on/off 6 # silence mode using -s... 7 VERBOSE ?= 1 8 Q = @ 9 Q_FLAG = -q 10 QUIET_FLAG = --quiet 11 V_FLAG = 12 S_FLAG = -s 13 X_FLAG = 14 ifeq ($(VERBOSE),1) 15 Q = 16 endif 17 ifeq ($(VERBOSE),2) 18 Q = 19 Q_FLAG = 20 QUIET_FLAG = 21 S_FLAG = 22 V_FLAG = -v 23 X_FLAG = -x 24 endif