clean
移植可能な Makefile のターゲットの適切な形式は何ですか? $(RM)
私にはうまくいきません。Windows (7) コマンド プロンプトと Eclipse の両方で作業しています。どちらも同じバージョンの make を報告します (私のパスには複数あります):
make --version
GNU Make 3.82
Built for i386-pc-mingw32
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Eclipse 内:
make clean
rm -f *.o testScaffolding_* runner.cpp runner.exe *.d
コマンドから:
rm -f *.o testScaffolding_* runner.cpp runner.exe *.d
process_begin: CreateProcess(NULL, rm -f *.o testScaffolding_* runner.cpp runner.exe *.d, ...) failed.
make (e=2): The system cannot find the file specified.
make: *** [clean] Error 2
どちらもおよびとしてレポート$(OS)
します。どちらもインストールしており、Makefile 内で呼び出すと、両方の環境で同じパスが報告されます。Windows_NT
$(RM)
rm -f