Merge branch 'make-install-warning' of https://gitlab.com/artizirk/skeleton into HEAD

This commit is contained in:
Arti Zirk 2016-11-15 23:35:01 +02:00
commit 0fc8ce42ab

View File

@ -90,6 +90,13 @@ clean:
rm -fr $(BUILD_LIBS_DIR)/*/*.o rm -fr $(BUILD_LIBS_DIR)/*/*.o
install: 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) $(AVRDUDE) $(AVRDUDEARGS) -U flash:w:$(TARGET)
format: format: