mirror of
https://github.com/Crocmagnon/lyon-transports.git
synced 2024-11-21 13:38:06 +01:00
17 lines
422 B
Makefile
17 lines
422 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
|
|
scp ./out/lyon-transports-linux-amd64 ubuntu:/mnt/data/lyon-transports/
|
|
ssh ubuntu-no-tmux "sudo systemctl restart lyon-transports.service"
|
|
|
|
out:
|
|
mkdir -p out
|
|
|
|
clean:
|
|
rm -rf out
|