From 4e55b06016f254947a21b3de3eb93392c0b627dc Mon Sep 17 00:00:00 2001 From: Sam Anthony Date: Thu, 7 Nov 2024 18:33:17 -0500 Subject: server: handle /duty_cycle --- Makefile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'Makefile') 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 -- cgit v1.2.3