我发现这与Making cmake print commands before executing是相同的问题。
但那个答案对我不起作用。我猜那个答案只适用于cmake。有什么选项可以在没有cmake的情况下工作?
注意尝试了这些方法:
make VERBOSE=1 target
make target VERBOSE=1
VERBOSE=1 make target
make V=1 target
make target V=1
V=1 make target
make -V target
make -v target
它们都没有起作用。
make -v 返回
GNU Make 3.81
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.
This program built for x86_64-pc-linux-gnu