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

"missing separator" error with macOS when ggrep not installed #666

Closed de-mux closed 3 years ago

de-mux commented 3 years ago

OS: MacOS (ggrep not installed)

Makefile:

ARDUINO_DIR = /Applications/Arduino.app/Contents/Java
ARDMK_DIR = ~/bin/arduino-mk
include $(ARDMK_DIR)/Arduino.mk

Command: make

Output:

-------------------------
Arduino.mk Configuration:
Using macOS BSD grep, please install GNU grep to avoid warnings
/Users/eiodla/bin/arduino-mk/Common.mk:61: *** missing separator (did you mean TAB instead of 8 spaces?).  Stop.

The line in question is: echo $(info Using macOS BSD grep, please install GNU grep to avoid warnings)

Removing "echo" seems to fix the issue and make then runs normally.

tuna-f1sh commented 3 years ago

You are right. I've made a PR to remove the echo.