dmoulding / boilermake

A reusable, but flexible, boilerplate Makefile.
GNU General Public License v3.0
192 stars 28 forks source link

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

Open cyounkins opened 10 years ago

cyounkins commented 10 years ago

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 commented 10 years ago

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\// ?