lyon-transports/Makefile

19 lines
470 B
Makefile
Raw Normal View History

2024-09-15 14:05:45 +02:00
.PHONY: build build-linux deploy clean
build: out
GOOS=darwin GOARCH=arm64 go build -o ./out/lyon-transports-darwin-arm64 ./
build-linux: out
GOOS=linux GOARCH=amd64 go build -o ./out/lyon-transports-linux-amd64 ./
deploy: build-linux
2024-11-20 03:19:51 +01:00
ssh ubuntu "sudo systemctl stop lyon-transports.service"
scp ./out/lyon-transports-linux-amd64 ubuntu:/mnt/data/lyon-transports/
ssh ubuntu "sudo systemctl start lyon-transports.service"
2024-09-15 14:05:45 +02:00
out:
mkdir -p out
clean:
rm -rf out