Makefile: new MONITOR_PORT for jadzia
[toast/airingbutler.git] / Makefile
index cb11d5a5f29513dc4d1eda054a034e040181696a..a7a2877c81ae5def525b24fe8ba68709f115d8d2 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,12 @@
 BOARD_TAG=uno
 BOARD_TAG=uno
+
+HOSTNAME=$(shell hostname)
+ifeq ($(HOSTNAME),jadzia)
+MONITOR_PORT=/dev/ttyACM1
+else
 MONITOR_PORT=/dev/ttyACM0
 MONITOR_PORT=/dev/ttyACM0
+endif
+
 # ARDUINO_SKETCHBOOK=~/sketchbook
 include /usr/share/arduino/Arduino.mk
 
 # ARDUINO_SKETCHBOOK=~/sketchbook
 include /usr/share/arduino/Arduino.mk