mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2024-12-21 03:00:35 +00:00
8b5a998c9c
It's better to see "make" entering a subdir than seeing nothing, so let's use a command name for make. Since make 3.81, "+" needs to be prepended in front of the command to pass the job server to the subdir.
31 lines
810 B
Makefile
31 lines
810 B
Makefile
# verbosity: pass V=1 for verbose shell invocation
|
|
V = 0
|
|
Q = @
|
|
ifeq ($V,1)
|
|
Q=
|
|
endif
|
|
|
|
# Some common commands such as CC/LD/AR are redefined with a cmd_ equivalent
|
|
# and are either mapped to a silent rule just indicating what is being done,
|
|
# or to themselves depending on the verbosity level.
|
|
ifeq ($V,1)
|
|
cmd_CC = $(CC)
|
|
cmd_LD = $(LD)
|
|
cmd_AR = $(AR)
|
|
cmd_MAKE = +$(MAKE)
|
|
else
|
|
ifeq (3.81,$(firstword $(sort $(MAKE_VERSION) 3.81)))
|
|
# 3.81 or above
|
|
cmd_CC = $(info $ CC $@) $(Q)$(CC)
|
|
cmd_LD = $(info $ LD $@) $(Q)$(LD)
|
|
cmd_AR = $(info $ AR $@) $(Q)$(AR)
|
|
cmd_MAKE = $(info $ MAKE $@) $(Q)+$(MAKE)
|
|
else
|
|
# 3.80 or older
|
|
cmd_CC = $(Q)echo " CC $@";$(CC)
|
|
cmd_LD = $(Q)echo " LD $@";$(LD)
|
|
cmd_AR = $(Q)echo " AR $@";$(AR)
|
|
cmd_MAKE = $(Q)echo " MAKE $@";$(MAKE)
|
|
endif
|
|
endif
|