lyon-transports/Makefile
2024-09-16 17:59:36 +02:00

18 lines
494 B
Makefile

.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
ssh ubuntu-no-tmux "sudo systemctl stop lyon-transports.service"
scp ./out/lyon-transports-linux-amd64 ubuntu-no-tmux:/mnt/data/lyon-transports/
ssh ubuntu-no-tmux "sudo systemctl start lyon-transports.service"
out:
mkdir -p out
clean:
rm -rf out