Name

mk_multi_target — Define a rule that generates multiple targets

Synopsis

MODULES="... core ..."

mk_multi_target TARGETS=targets command...

Options

DEPS=deps

A list of dependencies.

Description

Defines multiple targets that are generated by the same command. This is useful for programs like flex that output several files in a single run. This function defines a stamp file target which actually invokes command, which is intepreted as in mk_target. Each target in targets is then defined to simply depend on the stamp file. This guarantees that building any of the targets will invoke command exactly once, even when using parallel make.

Sets result to a second stamp file target which depends on targets.