make_rules

Name

make_rules  --  include the rules file

Synopsis

make_rules [rev=revision]

Description

make_rules adds inclusion tools/build/rules/common.mak to the makefile. The rules file is a central part of the build system, so you probably want to use it unless you are writing a script for other purpose than building the software for a product.

Options

rev=revision

Use the old rules file, apps/Rules.elinux, of the specified revision instead of the new rules file, tools/build/rules/common.mak. This option is deprecated and it only exists for compatibility with old scripts. This option may go away in future versions, so do not use it unless you really have to!

Caveats

Since the (new) rules file belongs to the tools/build package, make_rules does not fetch the rules file. You need to have the following somewhere in your configuration as well:

    tool tools/build rev=$revision
    

Example

Include the rules file:

    make_rules
    

See Also

fragment(3)