How eMake processes MAKEFLAGS

1 minute read

eMake uses the following process:

  1. Similar to GNU Make, eMake condenses no-value options into one block.

  2. When eMake encounters an option with a value, it does what GNU Make does, it appends the value and starts the next option with its own -

  3. Certain options are ignored/not created. This changes the layout of the options in MAKEFLAGS (for example -j, -l ).

  4. eMake-specific options are not added to MAKEFLAGS, but are handled through EMAKEFLAGS.

  5. Passing down environment variables as TEST=test renders the same result as in GNU Make (an extra - at the end, followed by the variable=value ).

  6. On Windows, eMake prepends the --unix or --win32 flag explicitly.