Skip to content

Makefileの要素名

[Rule Syntax]1や[Recipe Syntax]2によると、Makefile は以下のパーツごとに名前がある。

  • Target: 生成対象となるファイル名または名前
  • Prerequistite: ターゲットが依存する前提条件
  • Recipe: ターゲットを生成するコマンド郡
  • Rule: ターゲット、前提条件、レシピをまとめたもの
  • Variable: レシピの外にある変数定義
  • Function: $(func ...) で使える関数
  • Conditional Expression: ifdefifeq のこと
  1. https://www.gnu.org/software/make/manual/html_node/Rule-Syntax.html

  2. https://www.gnu.org/software/make/manual/html_node/Recipe-Syntax.html