aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile19
1 files changed, 7 insertions, 12 deletions
diff --git a/Makefile b/Makefile
index ccc477a..50237c4 100644
--- a/Makefile
+++ b/Makefile
@@ -21,22 +21,17 @@ lint:
embed:
go run ./internal/cmd/embed
-.PHONY: build-linux_amd64
-build-linux_amd64: embed
- mkdir -p $(BIN_LINUX_AMD64)
- CGO_ENABLED=0 GOOS=linux GOARCH=amd64 \
- go build -o $(BIN_LINUX_AMD64)/ ./cmd/...
-
-.PHONY: deploy
-deploy: build-linux_amd64
+.PHONY: build
+build: embed
+ CGO_ENABLED=0 go build -o _bin/ ./cmd/...
.PHONY: deploy-kamusd
-deploy-kamusd:
- rsync --progress $(BIN_LINUX_AMD64)/kamusd www-kamusku:~/bin/kamusd
+deploy-kamusd: build
+ rsync --progress _bin/kamusd kilabit.info:/data/app/bin/kamusd
.PHONY: deploy-telegram-bot
-deploy-telegram-bot:
- rsync --progress $(BIN_LINUX_AMD64)/kamusku-telegram-bot www-kamusku:~/bin/kamusku-telegram-bot
+deploy-telegram-bot: build
+ rsync --progress _bin/kamusku-telegram-bot kilabit.info:/data/app/bin/kamusku-telegram-bot
##
## Development tasks.