Мануалы и справочники Общие команды

Команда make: опции, ключи и примеры использования


Task runner for targets described in Makefile. Mostly used to control the compilation of an executable from source code.

  • Call the first target specified in the Makefile (usually named "all"):


  • Call a specific target:

make {{target}}

  • Call a specific target, executing 4 jobs at a time in parallel:

make -J{{4}} {{target}}

  • Use a specific Makefile:

make --file {{file}}

  • Execute make from another directory:

make --directory {{directory}}

  • Force making of a target, even if source files are unchanged:

make --always-make {{target}}

Изображение Выучи 10 хороших привычек для работы в UNIX от IBM