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:
pstef 2025-04-29 18:36:48 +00:00
parent 54af661d95
commit 0c838c14e9
14 changed files with 14 additions and 14 deletions

View File

@ -171,7 +171,7 @@ ifneq ($(MOC_HEADERS),)
RARCH_OBJ += $(MOC_OBJ)
endif
all: info $(TARGET) config.mk
all: $(TARGET) config.mk
define INFO
ASFLAGS: $(ASFLAGS)

View File

@ -274,7 +274,7 @@ endif
.PHONY: $(BUILD) clean all
all: info $(TARGET)
all: $(TARGET)
define INFO
AR: $(AR)

View File

@ -207,7 +207,7 @@ DEPENDS := $(filter-out libretro_libnx.a,$(DEPENDS_TMP))
#---------------------------------------------------------------------------------
# main targets
#---------------------------------------------------------------------------------
all: info $(OUTPUT)
all: $(OUTPUT)
define INFO
CC: $(CC)

View File

@ -166,7 +166,7 @@ endif
RARCH_OBJ := $(addprefix $(OBJDIR)/,$(OBJ))
all: info $(TARGET)
all: $(TARGET)
define INFO
ASFLAGS: $(ASFLAGS)

View File

@ -241,7 +241,7 @@ OBJOUT = -o
LINKOUT = -o
LINK = $(CXX)
all: info $(EXT_TARGET)
all: $(EXT_TARGET)
define INFO
CC: $(CC)

View File

@ -182,7 +182,7 @@ endif
TARGETS := $(TARGET).self
all: info $(TARGETS)
all: $(TARGETS)
define INFO
CC: $(CC)

View File

@ -108,7 +108,7 @@ EE_INCS = $(INCDIR)
EE_BIN = $(TARGET).elf
EE_GPVAL = $(GPVAL)
all: info $(EE_BIN)
all: $(EE_BIN)
define INFO
EE_BIN: $(EE_BIN)

View File

@ -130,7 +130,7 @@ ifneq ($(V),1)
Q := @
endif
all: info $(SELF_TARGET)
all: $(SELF_TARGET)
define INFO
CXX: $(CXX)

View File

@ -184,7 +184,7 @@ X-OD-NeedsDownscaling=true
endef
export DESKTOP_ENTRY
all: info $(TARGET) opk
all: $(TARGET) opk
define INFO
ASFLAGS: $(ASFLAGS)

View File

@ -186,7 +186,7 @@ X-OD-NeedsDownscaling=true
endef
export DESKTOP_ENTRY
all: info $(TARGET) opk
all: $(TARGET) opk
define INFO
ASFLAGS: $(ASFLAGS)

View File

@ -201,7 +201,7 @@ TARGETS := $(TARGET).vpk
DEPFLAGS = -MT $@ -MMD -MP -MF $*.Tdepend
POSTCOMPILE = mv -f $*.Tdepend $*.depend
all: info $(TARGETS)
all: $(TARGETS)
define INFO
ASFLAGS: $(ASFLAGS)

View File

@ -204,7 +204,7 @@ define APPINFO
endef
export APPINFO
all: info $(TARGET) ipk
all: $(TARGET) ipk
define INFO
ASFLAGS: $(ASFLAGS)

View File

@ -273,7 +273,7 @@ OBJOUT = -o
LINKOUT = -o
LINK = $(CXX)
all: info $(EXT_TARGET)
all: $(EXT_TARGET)
define INFO
CC: $(CC)

View File

@ -302,7 +302,7 @@ endif
DEPFLAGS = -MT $@ -MMD -MP -MF $(BUILD_DIR)/$*.depend
all: info $(TARGETS)
all: $(TARGETS)
define INFO
AR: $(AR)