Project

General

Profile

Actions

Misc #18756

closed

make V=1 or Q= for verbose?

Added by jaruga (Jun Aruga) about 2 years ago. Updated about 2 years ago.

Status:
Closed
Assignee:
-
[ruby-core:108414]

Description

This is a question about make V=1 and make Q=.
Seeing the code, it seems make V=1 is for a kind of official use rather than make Q=.

https://github.com/ruby/ruby/blob/0bab4c4addef3421f8ff1c45564f4a392b860f15/common.mk#L9-L15

However when I tested how to log between make V=1 and make Q= on the latest master 0bab4c4addef3421f8ff1c45564f4a392b860f15. Against my expectation, the result was that the Q= printed more log than V=1. I would attach the log files. Is it intentional?

autoconf 
./configure
make Q= 2>&1 | tee make_q.log
autoconf
./configure
make V=1 2>&1 | tee make_v1.log
$ diff make_q.log make_v1.log | head -10
19d18
< compiling ./main.c
21d19
< compiling dmydln.c
23d20
< generating id.h
27d23
< generating miniprelude.c
31d26
< compiling miniinit.c

I am trying to find which part prints the ...ing <file path> lines to the log. The lines below might be clue. But I am not sure about it so far due to my limitation of understanding Makefile syntax.

https://github.com/ruby/ruby/blob/0bab4c4addef3421f8ff1c45564f4a392b860f15/template/Makefile.in#L9

ECHO1 = $(V:1=$n)

https://github.com/ruby/ruby/blob/0bab4c4addef3421f8ff1c45564f4a392b860f15/template/exts.mk.tmpl#L6

ECHO1 = $(V:1=$n)
ECHO = $(ECHO1:0=@echo)

Files

make_q.log (442 KB) make_q.log jaruga (Jun Aruga), 04/28/2022 03:44 PM
make_v1.log (440 KB) make_v1.log jaruga (Jun Aruga), 04/28/2022 03:44 PM
make_main_o_q_debug.log (1001 Bytes) make_main_o_q_debug.log jaruga (Jun Aruga), 05/02/2022 05:57 PM
make_main_o_v1_debug.log (976 Bytes) make_main_o_v1_debug.log jaruga (Jun Aruga), 05/02/2022 05:57 PM
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0Like0Like0