From: gregor herrmann Date: Thu, 5 Nov 2020 20:49:39 +0000 (+0100) Subject: Makefile: set MONITOR_PORT depending on hostname X-Git-Url: https://git.toastfreeware.priv.at/toast/airingbutler.git/commitdiff_plain/4e47e2720644649b85adc82fa5f743e0cf7093f5?ds=sidebyside;hp=2759f53841312464c0b448f1cf442ff944490ab1 Makefile: set MONITOR_PORT depending on hostname --- diff --git a/Makefile b/Makefile index cb11d5a..c98fda1 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,12 @@ BOARD_TAG=uno + +HOSTNAME=$(shell hostname) +ifeq ($(HOSTNAME),jadzia) +MONITOR_PORT=/dev/ttyACM3 +else MONITOR_PORT=/dev/ttyACM0 +endif + # ARDUINO_SKETCHBOOK=~/sketchbook include /usr/share/arduino/Arduino.mk