CygwinのGNU make 3.8.1がWindowsのドライブレターを認識しない件について
たとえば、こんな感じで、ターゲットにドライブレターが入っている場合、
#!/usr/bin/make .SILENT: file_targets := ./target_2 c:/work/dev/make/target .PHONY: all all: $(file_targets) echo 'This is target "$@"' $(file_targets): echo 'This is target "$@"' echo 'test test' > $@
↓な感じで、エラーになる。
Makefile:8: *** multiple target patterns. Stop.
これは、c:/work/dev/make/target のc: の部分がターゲットとセパレータのコロンと見なされているため。
エラい人が、DOSのドライブレターを認識するパッチを書いてくれてる。
http://cygwin.com/ml/cygwin/2006-09/msg00153.html
ここからダウンロード
http://www.cmake.org/files/cygwin/make.exe
stripすると、すこし速くなる。
http://cygwin.com/ml/cygwin/2006-09/msg00135.html