Makefile
This commit is contained in:
parent
cfc9f9a04f
commit
d8cf1e36a5
2 changed files with 9 additions and 0 deletions
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
dlbot
|
8
Makefile
Normal file
8
Makefile
Normal file
|
@ -0,0 +1,8 @@
|
|||
.PHONY: dlbot
|
||||
dlbot:
|
||||
CGO_ENABLED=0 GOOS=linux go build -a -ldflags '-extldflags "-static"' .
|
||||
|
||||
upload: dlbot
|
||||
ssh -p993 root@nulo.in sv stop dlbot
|
||||
scp -P993 dlbot dlbot@nulo.in:/home/dlbot/bin/
|
||||
ssh -p993 root@nulo.in sv start dlbot
|
Reference in a new issue