Name

make

Synopsis

make [options] [targets] [macro definitions]

Description

Update one or more targets according to dependency instructions in a description file in the current directory. By default, this file is called makefile or Makefile. Options, targets, and macro definitions can be in any order. Macros definitions are typed as:

                  name=string

For more information on make, see Managing Projects with make by Andrew Oram and Steve Talbott.

Options

-d, --debug

Print detailed debugging information.

-e, --environment-overrides

Override makefile macro definitions with environment variables.

-f makefile, --file= makefile, --makefile= makefile

Use makefile as the description file; a filename of - denotes standard input.

-h, --help

Print options to make command.

-i, --ignore-errors

Ignore command error codes (same as .IGNORE).

-j [jobs], --jobs [=jobs]

Attempt to execute jobs jobs simultaneously, or, if no number is specified, as many jobs as possible.

-k, --keep-going

Abandon the current target when it fails, but keep working with unrelated targets.

-l [load], --load-average [= load], --max-load [=load]

Attempt to keep load below load, which should be a floating-point number. Used with -j.

-n, --just-print, --dry-run, --recon

Print commands but don’t execute (used for testing).

-o file, --old-file= file, --assume-old= file

Never remake file or cause other files to be remade on account of it.

-p, --print-data-base

Print rules and variables in addition to normal execution.

-q, --question

Get Linux in a Nutshell, Third Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.