Skip to content

Don't stomp on "VERBOSE" variable - #479

Open
berrange wants to merge 1 commit into
intel:mainfrom
berrange:make-verbose
Open

Don't stomp on "VERBOSE" variable#479
berrange wants to merge 1 commit into
intel:mainfrom
berrange:make-verbose

Conversation

@berrange

@berrange berrange commented Dec 4, 2025

Copy link
Copy Markdown
Contributor

The VERBOSE=1 variable is set to make various cmake builds run in verbose mode. It must not be used for other purposes by the makefiles otherwise the usage will clash, and that prevents switching Cmake into verbose mode.

The VERBOSE=1 variable is set to make various cmake builds run in
verbose mode. It must not be used for other purposes by the makefiles
otherwise the usage will clash.

Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
Comment thread driver/win/PLE/Makefile
endif

VERBOSE := @
CMD := @

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CMD is a little cryptic and hard to reason about wrt. the intent.

I'd suggest sth more akin to this:

# Quiet (suppress cmd echo)
Q := @

ifeq ($(V),1)
    Q :=
endif

ifdef VERBOSE
    Q :=
endif

I.e move from VERBOSE to Q (which, allegedly, may be even more idiomatic), while also honoring cmake's VERBOSE, aka.
make V=1 and make VERBOSE=1 both producing a verbose variant.

Note that, technically make VERBOSE=0 would also be verbose, but I think it's actually consistent w/ CMake (IIRC it does #ifdef not #if, but may be wrong here)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, that all makes sense to me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants