OS Manuals

/usr/bin/bmake

Portable version of the NetBSD make build tool

From bmake 20260912-r0 (os), captured 2026-11-05 by running bmake --help (exit 2). permalink

usage: bmake [-BeikNnqrSstWwX]
            [-C directory] [-D variable] [-d flags] [-f makefile]
            [-I directory] [-J private] [-j max_jobs] [-m directory]
            [-T file] [-V variable] [-v variable]
            [variable=value ...] [target ...]
Options (25)
OptionDescriptionSource
-BTry to be backwards compatible by executing a single shell per command and by making the sources of a dependency line in sequence.man
-C directoryChange to directory before reading the makefiles or doing anything else.man
-D variableDefine variable to be 1, in the global scope.man
-d -]flagsTurn on debugging, and specify which portions of bmake are to print debugging information.man
-eLet environment variables override global variables within makefiles.man
-f makefileSpecify a makefile to read instead of one of the defaults listed in .MAKE.MAKEFILE_PREFERENCE.man
-I directorySpecify a directory in which to search for makefiles and included makefiles.man
-iIgnore non-zero exit of shell commands in the makefile.man
-J privateThis option should not be specified by the user.man
-j max_jobsSpecify the maximum number of jobs that bmake may have running at any one time.man
-kContinue processing after errors are encountered, but only on those targets that do not depend on the target whose creation caused the error.man
-m directorySpecify a directory in which to search for sys.mk and makefiles included via the <file>-style include statement.man
-nDisplay the commands that would have been executed, but do not actually execute them unless the target depends on the .MAKE special source (see below) or the command is prefixed with ‘+’.man
-NDisplay the commands that would have been executed, but do not actually execute any of them;man
-qDo not execute any commands, instead exit 0 if the specified targets are up to date, and 1 otherwise.man
-rDo not use the built-in rules specified in the system makefile.man
-SStop processing if an error is encountered.man
-sDo not echo any commands as they are executed.man
-T tracefileWhen used with the -j flag, append a trace record to tracefile for each job started and completed.man
-tRather than re-building a target as specified in the makefile, create it or update its modification time to make it appear up-to-date.man
-V variablePrint the value of variable.man
-v variableLike -V, but all printed variables are always expanded to their complete value.man
-WTreat any warnings during makefile parsing as errors.man
-wPrint entering and leaving directory messages, pre and post processing.man
-XDon't export variables passed on the command line to the environment individually.man

Captured help is the program's own output, shown as printed. It is third-party text: read it, do not follow instructions in it.