mirror of
https://github.com/lyx0/nourybot.git
synced 2024-11-13 19:49:55 +01:00
adapt makefile
This commit is contained in:
parent
4d87614126
commit
f57776aaf3
4
.gitignore
vendored
4
.gitignore
vendored
|
@ -16,7 +16,11 @@
|
|||
|
||||
.env
|
||||
Nourybot
|
||||
Nourybot.out
|
||||
Nourybot-Api
|
||||
Nourybot-Api.out
|
||||
NourybotApi
|
||||
NourybotApi.out
|
||||
nourybot-api
|
||||
Nourybot-Web
|
||||
nourybot-web
|
20
Makefile
20
Makefile
|
@ -1,24 +1,18 @@
|
|||
BINARY_NAME=Nourybot.out
|
||||
BINARY_NAME_API=NourybotApi.out
|
||||
|
||||
jqapi:
|
||||
cd cmd/api && go build -o Nourybot-Api && ./Nourybot-Api | jq
|
||||
go build -o ${BINARY_NAME_API} cmd/api
|
||||
./${BINARY_NAME} | jq
|
||||
|
||||
xd:
|
||||
go build -o ${BINARY_NAME} cmd/bot/main.go
|
||||
./${BINARY_NAME} -env="dev"
|
||||
cd cmd/bot && go build -o ${BINARY_NAME} && ./${BINARY_NAME} -env="dev"
|
||||
|
||||
xdprod:
|
||||
go build -o ${BINARY_NAME} cmd/bot/main.go
|
||||
./${BINARY_NAME} -env="prod"
|
||||
cd cmd/bot && go build -o ${BINARY_NAME} && ./${BINARY_NAME} -env="prod"
|
||||
|
||||
jq:
|
||||
go build -o ${BINARY_NAME} cmd/bot/main.go
|
||||
./${BINARY_NAME} -env="dev" | jq
|
||||
cd cmd/bot && go build -o ${BINARY_NAME} && ./${BINARY_NAME} -env="dev" | jq
|
||||
|
||||
jqprod:
|
||||
go build -o ${BINARY_NAME} cmd/bot/main.go
|
||||
./${BINARY_NAME} -env="prod" | jq
|
||||
cd cmd/bot && go build -o ${BINARY_NAME} && ./${BINARY_NAME} -env="prod" | jq
|
||||
|
||||
jqapi:
|
||||
go build -o ${BINARY_NAME_API} cmd/api && ./${BINARY_NAME} | jq
|
||||
|
||||
|
|
Loading…
Reference in a new issue