makefile中指定路径
The --no-print-directory
option of make
tells make
not to print the message about entering and leaving the working directory. However, how to specify the --no-print-directory
inside the Makefile itself?
该--no- print -directory
的选择make
告诉make
不打印有关进入和离开工作目录的消息。 然而,如何指定--no-print-directory
里面 生成文件本身?
Add this line to the Makefile:
将此行添加到Makefile中:
MAKEFLAGS += --no-print-directory
You can also set MAKEFLAGS in a makefile, to specify additional flags that should also be in effect for that makefile.
您还可以在makefile中设置MAKEFLAGS,以指定对于该makefile也应生效的其他标志。
— http://www.gnu.org/software/make/manual/html_node/Options_002fRecursion.html
— http://www.gnu.org/software/make/manual/html_node/Options_002fRecursion.html
翻译自: https://www.systutorials.com/specifying-no-print-directory-within-the-makefile/
makefile中指定路径