/make/arduino-mk

To get this branch, use:
bzr branch http://bzr.ed.am/make/arduino-mk

« back to all changes in this revision

Viewing changes to arduino.mk

  • Committer: Tim Marston
  • Date: 2014-01-08 20:24:16 UTC
  • Revision ID: tim@ed.am-20140108202416-n3uhux9wm9g52js9
remove use of non-portable sed -r

Show diffs side-by-side

added added

removed removed

Lines of Context:
264
264
# (this is a really stupid way of doing it, but it's how the IDE works -- if
265
265
# it's causing problems, you can override it by setting LIBRARIES manually)
266
266
INCLUDEDHEADERS := \
267
 
        $(shell sed -nre "s/^\s*\#\s*include\s*[<\"](\S+\.h)[>\"].*/\1/p" \
 
267
        $(shell sed -ne "s/^\s*\#\s*include\s*[<\"]\(\S\+\.h\)[>\"].*/\1/p" \
268
268
        $(SOURCES))
269
269
reverse = $(if $(1),$(call reverse,$(wordlist 2,$(words $(1)),$(1)))) \
270
270
        $(firstword $(1))
388
388
 
389
389
boards:
390
390
        @echo "Available BOARD values:"
391
 
        @sed -nre '/^\w+\.name=/p; /^menu\.cpu\.\w+\.\w+=/p;' $(BOARDSFILES) | \
392
 
                sed -re 's/(\w+)\.name=(.*)/\1                   \2/' \
393
 
                        -e 's/menu.cpu.\w+(\.\w+)=(.*)/  \1                  --\2/' \
394
 
                        -e 's/(.{19}) *(.*)/  \1 \2/; s/--/  w\/ /;'
 
391
        @sed -ne '/^\w\+\.name=/p; /^menu\.cpu\.\w\+\.\w\+=/p;' $(BOARDSFILES) | \
 
392
                sed -e 's/\(\w\+\)\.name=\(.*\)/\1                   \2/' \
 
393
                        -e 's/menu.cpu.\w\+\(\.\w\+\)=\(.*\)/  \1                  --\2/' \
 
394
                        -e 's/\(.\{19\}\) *\(.*\)/  \1 \2/; s/--/  ...with /;'
395
395
ifneq "$(ARDUINOBACKENDS)" "/"
396
396
        @echo
397
397
        @echo "NOTE: where a board supports multiple CPUs, you must specify" \