summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 089a0f4..91b6c05 100644
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,6 @@
SENSOR_SRC = SensorStation/SensorStation.ino
HVAC_SRC = HvacStation/HvacStation.ino
+SERVER_SRC = server/server.go server/record.go
BOARD = esp32:esp32:lilygo_t_display
PORT = /dev/ttyACM0
@@ -7,7 +8,11 @@ PORT = /dev/ttyACM0
CFLAGS = -b ${BOARD}
UPLOADFLAGS = -p ${PORT} ${CFLAGS}
-all: SensorStation/build HvacStation/build
+all: SensorStation/build HvacStation/build server/server
+
+server/server: ${SERVER_SRC}
+ go build -o $@ $^
+ gofmt -l -s -w $^
SensorStation/build: ${SENSOR_SRC}
arduino-cli compile ${CFLAGS} SensorStation