diff options
| author | Sam Anthony <sam@samanthony.xyz> | 2024-11-07 18:33:17 -0500 |
|---|---|---|
| committer | Sam Anthony <sam@samanthony.xyz> | 2024-11-07 18:33:17 -0500 |
| commit | 4e55b06016f254947a21b3de3eb93392c0b627dc (patch) | |
| tree | a1bd79353d23f52578c45a3e295b01afa1f62194 /Makefile | |
| parent | a506bde81eb70d6488a479086bc9afbf0c7025a9 (diff) | |
| download | soen422-4e55b06016f254947a21b3de3eb93392c0b627dc.zip | |
server: handle /duty_cycle
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -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 |