From: "jaruga (Jun Aruga)" Date: 2022-05-04T16:47:42+00:00 Subject: [ruby-core:108471] [Ruby master Misc#18756] make V=1 or Q= for verbose? Issue #18756 has been updated by jaruga (Jun Aruga). Status changed from Feedback to Closed nobu (Nobuyoshi Nakada) wrote in #note-7: > Do not use `Q=`. > `Q`, `Q1` and `V1` are intermediate variables. > You may want to set `ECHO0=echo` unconditionally. Thanks for the info. I see a little bit difference between `make Q=`, `make install Q=` and `make V=1 ECHO0=echo` and `make install V=1 ECHO0=echo`. But that's fine with me. I will use the `V=1 ECHO0=echo`. ---------------------------------------- Misc #18756: make V=1 or Q= for verbose? https://bugs.ruby-lang.org/issues/18756#change-97510 * Author: jaruga (Jun Aruga) * Status: Closed * Priority: Normal ---------------------------------------- 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 ` 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_v1.log (440 KB) make_main_o_q_debug.log (1001 Bytes) make_main_o_v1_debug.log (976 Bytes) -- https://bugs.ruby-lang.org/ Unsubscribe: