sudar / Arduino-Makefile

Makefile for Arduino sketches. It defines the workflows for compiling code, flashing it to Arduino and even communicating through Serial.
http://hardwarefun.com/tutorials/compiling-arduino-sketches-using-makefile
GNU Lesser General Public License v2.1
2.02k stars 449 forks source link

.ino.d file creatation has extra #653

Open fredspartan104 opened 3 years ago

fredspartan104 commented 3 years ago

When I run make the first time on my .ino file, it compiles and creates all the files. When I update my .ino file with a change and compile again I get a "make: *** No rule to make target C\:/Arduino/hardware/arduino/avr/cores/arduino/Arduino.h', needed by../bin/Sunrise_Clock.ino.o'. Stop.". I found a .ino.d file that has the Arduino.h file in it but all the locations have C\:/ in the location. I can not find how the .ino.d file gets generated to clean up the path generation.

Whats in the file. ../bin/Sunrise_Clock.ino.o: Sunrise_Clock.ino \ C\:/Arduino/hardware/arduino/avr/cores/arduino/Arduino.h \ C\:/Arduino/hardware/arduino/avr/cores/arduino/binary.h \ C\:/Arduino/hardware/arduino/avr/cores/arduino/WCharacter.h \ C\:/Arduino/hardware/arduino/avr/cores/arduino/WString.h \ C\:/Arduino/hardware/arduino/avr/cores/arduino/HardwareSerial.h \ C\:/Arduino/hardware/arduino/avr/cores/arduino/Stream.h \ C\:/Arduino/hardware/arduino/avr/cores/arduino/Print.h \ C\:/Arduino/hardware/arduino/avr/cores/arduino/Printable.h \ C\:/Arduino/hardware/arduino/avr/cores/arduino/USBAPI.h \ C\:/Arduino/hardware/arduino/avr/cores/arduino/Arduino.h \ C\:/Arduino/hardware/arduino/avr/variants/standard/pins_arduino.h \ C\:/Arduino/hardware/arduino/avr/libraries/Wire/src/Wire.h \ C\:/Arduino/hardware/arduino/avr/cores/arduino/Stream.h \

Thanks.