Get the App
SLTechnology News&Howtos  ›  Development  › 

How to use the make command in Linux

Shulou Source: shulou.com Published: 2022-06-01 17:15:40 10月03日 Update

This article will explain in detail how to use the make command in Linux. The editor thinks it is very practical, so I share it with you as a reference. I hope you can get something after reading this article.

Linux commonly used commands make commands are used to compile the kernel or module.

Syntax make [options] [goals]...

Option:-b,-m ignore compatibility. -B.-- always-make Unconditionally make all targets. -C directory,-- directory= directory changes to "directory" before all operations. -d prints a large amount of debugging information. -- debug [= FLAGS] prints various debugging information-e,-- environment-overrides specifies the environment variable-f FILE,-- file=FILE,-- makefile=FILE that overrides the default setting in makefile. Read FILE as a makefile. -h,-- help prints the message and exits. -I,-ignore-errors Ignore errors from commands. -I DIRECTORY,-- include-dir=DIRECTORY search for makefiles contained by DIRECTORY. -j [N],-- jobs [= N] allows N tasks at the same time; no parameter means unlimited tasks are allowed. -k,-- keep-going continues when some targets cannot be created. -l [N],-- load-average [= N],-- max-load [= N] does not start multithreading unless the system load is less than N-L,-- check-symlink-times Use the latest mtime between symlinks and target. -n,-- just-print,-- dry-run,-- recon don't actually run any commands; just output them-o FILE,-- old-file=FILE,-- assume-old=FILE think FILE is very old, don't make it again. -p,-- print-data-base prints the internal database of make. -Q,-- question does not run any commands; whether the exit status description has been fully updated. -r,-- no-builtin-rules disables built-in implicit rules. -R,-- no-builtin-variables disables the built-in variable setting. -s,-- silent,-- quiet does not display commands. -S,-- no-keep-going,-- stop close-k. -t,-- touch touch targets instead of recreating them-v,-- version prints the version number of the make and exits. -w,-- print-directory prints the current directory. -- no-print-directory closes-w even if it is implicitly turned on. -W FILE,-- what-if=FILE,-- new-file=FILE,-- assume-new=FILE 's article on "how to use make commands in Linux" ends here. I hope the above content can be helpful to you, so that you can learn more knowledge. if you think the article is good, please share it for more people to see.

Tags: Commands directories goals articles tasks information variables more run good practical compatibility content kernel parameters parameter tables at the same time actual commonly used data Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno MariaDB Shulou Technology Xiaomi Shulou Information Docker