1
0
Fork 0

Error out from make install if ARDUINO env var is unset

This commit is contained in:
Arti Zirk 2016-11-06 20:37:15 +02:00
parent 8b7377dff3
commit 39a457b101
1 changed files with 7 additions and 0 deletions

View File

@ -90,6 +90,13 @@ clean:
rm -fr $(BUILD_LIBS_DIR)/*/*.o
install:
@if [ ! -c "$(ARDUINO)" ]; then \
echo -e "\n\nEnvironment variable ARDUINO is \"$(ARDUINO)\" and that is invalid."\
"\nDid you do \"export ARDUINO=/dev/ttyACM0\" before running make install?"\
"\nAlso make sure that ARDUINO env var points to a valid tty device\n\n"; \
exit 1;\
fi
$(AVRDUDE) $(AVRDUDEARGS) -U flash:w:$(TARGET)
format: