メイクファイルは、タブと非常に愚かな関係を持っている、すべてのルールのすべてのアクションがタブによって識別され......そして何4つのスペースには、タブを作るいけないん、唯一のタブがタブになります。 ..
に私はそれが$の両方を持つIおよび行末^と、タブの存在は依存関係が正常に終了しているので、タブがルールのアクションをマークすることを確実にするために不可欠で表示するコマンドにcat -e -t -v makefile_name
を使用してチェックします彼らは..... makeユーティリティに簡単に識別でき
例:
Kaizen ~/so_test $ cat -e -t -v mk.t
all:ll$ ## here the $ is end of line ...
$
ll:ll.c $
^Igcc -c -Wall -Werror -02 c.c ll.c -o ll [email protected] $<$
## the ^I above means a tab was there before the action part, so this lines ok .
$
clean :$
\rm -fr ll$
## see here there is no ^I which means , tab is not present ....
## in this case you need to open the file again and edit/ensure a tab
## starts the action part
は、このことができます願っています!
出典
2013-06-05 16:27:25
nsd
.RECIPEPREFIXを使用して文字を変更することができます。下記を参照してください:https://www.gnu.org/software/make/manual/html_node/Special-Variables.html#Special-Variables – aseq
これはどのように複製されていませんでしたか?重複している可能性があります[Make error:missing separator](https://stackoverflow.com/questions/920413/make-error-missing-separator) – jww