boilermake icon indicating copy to clipboard operation
boilermake copied to clipboard

make <any target> fails with "multiple target patterns" on Windows

Open cyounkins opened this issue 10 years ago • 1 comments

Using mingw make run in cmd.exe provided by Atmel Studio on Windows 7 pro.

make -v GNU Make 3.81 Copyright (C) 2006 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

This program built for i386-pc-mingw32

make makefile:341: *** multiple target patterns. Stop.

My hunch is this has to do with path specifications (forward vs backward slash), and maybe drive specification involving a colon. Any help diagnosing this would be greatly appreciated.

Craig

cyounkins avatar May 17 '14 21:05 cyounkins

So running in cygwin is a little better - It will make once, but will fail on subsequent runs because during dependency generation, the compiler (which I've set to avr-gcc.exe) spits out references to a default include path that are absolute paths, including "c:"

So "c:\program\ files\ (x86)\atmel\atmel\ toolchain\avr8\ gcc\native\3.4.1051\avr8-gnu-toolchain\avr\include\avr\io.h" is in one of the .P files.

Perhaps you could help me modify COMPILE_C_CMDS to do something like s/c://cygdrive/c// ?

cyounkins avatar May 18 '14 19:05 cyounkins