Makefiles: don't print info unconditionally
The point of making the default "semi-silent" (each target is printed, but not the entire invocation verbatim) was to factor out information about invocation to a one-time target (info) and not repeating it ever again. With V=1, the info target is silent, because each command invocation will be printed verbatim, which needs no herald. The undesired side effect of me introducing the info target and making it a dependency of the default all target is that info doesn't respect the --silent make option, so in this use case it was more noisy, not less. I believe the most elegant solution that satisfies all use cases is to stop printing info unconditionally, and instead list it explicitly in make invocations in CI, together with the all target. Then this info is kept available for inspection from logs, but it's not repeated on each invocation. The intention was to make the logs easier to read and scroll in search for new compiler warnings.
This commit is contained in:
parent
54af661d95
commit
0c838c14e9
2
Makefile
2
Makefile
|
@ -171,7 +171,7 @@ ifneq ($(MOC_HEADERS),)
|
||||||
RARCH_OBJ += $(MOC_OBJ)
|
RARCH_OBJ += $(MOC_OBJ)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
all: info $(TARGET) config.mk
|
all: $(TARGET) config.mk
|
||||||
|
|
||||||
define INFO
|
define INFO
|
||||||
ASFLAGS: $(ASFLAGS)
|
ASFLAGS: $(ASFLAGS)
|
||||||
|
|
|
@ -274,7 +274,7 @@ endif
|
||||||
|
|
||||||
.PHONY: $(BUILD) clean all
|
.PHONY: $(BUILD) clean all
|
||||||
|
|
||||||
all: info $(TARGET)
|
all: $(TARGET)
|
||||||
|
|
||||||
define INFO
|
define INFO
|
||||||
AR: $(AR)
|
AR: $(AR)
|
||||||
|
|
|
@ -207,7 +207,7 @@ DEPENDS := $(filter-out libretro_libnx.a,$(DEPENDS_TMP))
|
||||||
#---------------------------------------------------------------------------------
|
#---------------------------------------------------------------------------------
|
||||||
# main targets
|
# main targets
|
||||||
#---------------------------------------------------------------------------------
|
#---------------------------------------------------------------------------------
|
||||||
all: info $(OUTPUT)
|
all: $(OUTPUT)
|
||||||
|
|
||||||
define INFO
|
define INFO
|
||||||
CC: $(CC)
|
CC: $(CC)
|
||||||
|
|
|
@ -166,7 +166,7 @@ endif
|
||||||
|
|
||||||
RARCH_OBJ := $(addprefix $(OBJDIR)/,$(OBJ))
|
RARCH_OBJ := $(addprefix $(OBJDIR)/,$(OBJ))
|
||||||
|
|
||||||
all: info $(TARGET)
|
all: $(TARGET)
|
||||||
|
|
||||||
define INFO
|
define INFO
|
||||||
ASFLAGS: $(ASFLAGS)
|
ASFLAGS: $(ASFLAGS)
|
||||||
|
|
|
@ -241,7 +241,7 @@ OBJOUT = -o
|
||||||
LINKOUT = -o
|
LINKOUT = -o
|
||||||
LINK = $(CXX)
|
LINK = $(CXX)
|
||||||
|
|
||||||
all: info $(EXT_TARGET)
|
all: $(EXT_TARGET)
|
||||||
|
|
||||||
define INFO
|
define INFO
|
||||||
CC: $(CC)
|
CC: $(CC)
|
||||||
|
|
|
@ -182,7 +182,7 @@ endif
|
||||||
|
|
||||||
TARGETS := $(TARGET).self
|
TARGETS := $(TARGET).self
|
||||||
|
|
||||||
all: info $(TARGETS)
|
all: $(TARGETS)
|
||||||
|
|
||||||
define INFO
|
define INFO
|
||||||
CC: $(CC)
|
CC: $(CC)
|
||||||
|
|
|
@ -108,7 +108,7 @@ EE_INCS = $(INCDIR)
|
||||||
EE_BIN = $(TARGET).elf
|
EE_BIN = $(TARGET).elf
|
||||||
EE_GPVAL = $(GPVAL)
|
EE_GPVAL = $(GPVAL)
|
||||||
|
|
||||||
all: info $(EE_BIN)
|
all: $(EE_BIN)
|
||||||
|
|
||||||
define INFO
|
define INFO
|
||||||
EE_BIN: $(EE_BIN)
|
EE_BIN: $(EE_BIN)
|
||||||
|
|
|
@ -130,7 +130,7 @@ ifneq ($(V),1)
|
||||||
Q := @
|
Q := @
|
||||||
endif
|
endif
|
||||||
|
|
||||||
all: info $(SELF_TARGET)
|
all: $(SELF_TARGET)
|
||||||
|
|
||||||
define INFO
|
define INFO
|
||||||
CXX: $(CXX)
|
CXX: $(CXX)
|
||||||
|
|
|
@ -184,7 +184,7 @@ X-OD-NeedsDownscaling=true
|
||||||
endef
|
endef
|
||||||
export DESKTOP_ENTRY
|
export DESKTOP_ENTRY
|
||||||
|
|
||||||
all: info $(TARGET) opk
|
all: $(TARGET) opk
|
||||||
|
|
||||||
define INFO
|
define INFO
|
||||||
ASFLAGS: $(ASFLAGS)
|
ASFLAGS: $(ASFLAGS)
|
||||||
|
|
|
@ -186,7 +186,7 @@ X-OD-NeedsDownscaling=true
|
||||||
endef
|
endef
|
||||||
export DESKTOP_ENTRY
|
export DESKTOP_ENTRY
|
||||||
|
|
||||||
all: info $(TARGET) opk
|
all: $(TARGET) opk
|
||||||
|
|
||||||
define INFO
|
define INFO
|
||||||
ASFLAGS: $(ASFLAGS)
|
ASFLAGS: $(ASFLAGS)
|
||||||
|
|
|
@ -201,7 +201,7 @@ TARGETS := $(TARGET).vpk
|
||||||
DEPFLAGS = -MT $@ -MMD -MP -MF $*.Tdepend
|
DEPFLAGS = -MT $@ -MMD -MP -MF $*.Tdepend
|
||||||
POSTCOMPILE = mv -f $*.Tdepend $*.depend
|
POSTCOMPILE = mv -f $*.Tdepend $*.depend
|
||||||
|
|
||||||
all: info $(TARGETS)
|
all: $(TARGETS)
|
||||||
|
|
||||||
define INFO
|
define INFO
|
||||||
ASFLAGS: $(ASFLAGS)
|
ASFLAGS: $(ASFLAGS)
|
||||||
|
|
|
@ -204,7 +204,7 @@ define APPINFO
|
||||||
endef
|
endef
|
||||||
export APPINFO
|
export APPINFO
|
||||||
|
|
||||||
all: info $(TARGET) ipk
|
all: $(TARGET) ipk
|
||||||
|
|
||||||
define INFO
|
define INFO
|
||||||
ASFLAGS: $(ASFLAGS)
|
ASFLAGS: $(ASFLAGS)
|
||||||
|
|
|
@ -273,7 +273,7 @@ OBJOUT = -o
|
||||||
LINKOUT = -o
|
LINKOUT = -o
|
||||||
LINK = $(CXX)
|
LINK = $(CXX)
|
||||||
|
|
||||||
all: info $(EXT_TARGET)
|
all: $(EXT_TARGET)
|
||||||
|
|
||||||
define INFO
|
define INFO
|
||||||
CC: $(CC)
|
CC: $(CC)
|
||||||
|
|
|
@ -302,7 +302,7 @@ endif
|
||||||
|
|
||||||
DEPFLAGS = -MT $@ -MMD -MP -MF $(BUILD_DIR)/$*.depend
|
DEPFLAGS = -MT $@ -MMD -MP -MF $(BUILD_DIR)/$*.depend
|
||||||
|
|
||||||
all: info $(TARGETS)
|
all: $(TARGETS)
|
||||||
|
|
||||||
define INFO
|
define INFO
|
||||||
AR: $(AR)
|
AR: $(AR)
|
||||||
|
|
Loading…
Reference in New Issue