aboutsummaryrefslogtreecommitdiff
path: root/Makefile
blob: f96b9db13e0c2ef485f828803ad99a8d76ed25a1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
BOARDS_TXT		   = ../hardware/blend/avr/boards.txt
ARDUINO_VAR_PATH   = ../hardware/blend/avr/variants
BOARD_TAG		   = blendmicro16
#DEVICE_PORT	   = /dev/ttyACM0
MONITOR_BAUDRATE   = 115200
MONITOR_PORT	  ?= $(shell ls /dev/ttyACM* | head -n 1)

ARDUINO_LIBS = BLE SPI EEPROM Low-Power AltSoftSerial

ifdef CONFIG_MK
include $(CONFIG_MK)
endif

ARDMK_DIR ?= /usr/share/arduino
-include $(ARDMK_DIR)/Arduino.mk

$(ARDMK_DIR)/Arduino.mk:
	@if [ ! -r $(ARDMK_DIR)/Arduino.mk ]; then echo "You need to install the arduino-mk package"; fi
	@false

fix-lines:
	@for f in `ls -1 *.cpp *.h *.ino`; do \
	  sed -e :a -e '/^\n*$$/{$$d;N;ba' -e '}' $$f > x; \
	  mv x $$f; \
	done