peplin / arduino.mk

DEPRECATED FORK: Arduino Makefile with chipKIT support
http://christopherpeplin.com/2011/12/chipkit-arduino-makefile/
GNU Lesser General Public License v2.1
11 stars 4 forks source link

Simplified PARSE_BOARD #12

Closed rei-vilo closed 12 years ago

rei-vilo commented 12 years ago

Simplified PARSE_BOARD

PARSE_BOARD = $(shell grep $(1).$(2) $(BOARDS_TXT) | cut -d =... -f 2 )

instead of

nullstring  :=
spacestring := $(nullstring) # end of the line
equalstring := $(nullstring)=# end of the line
 # result = $(call READ_BOARD_TXT, 'boardname', 'parameter')
PARSE_BOARD = $(lastword $(subst $(equalstring),$(spacestring),$(shell grep $(1).$(2) $(BOARDS_TXT))))
peplin commented 12 years ago

I tried to merge this, but the commit seems to have disappeared from your repository. I'll make the change manually - thanks!