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
|
.env
|
||||||
Nourybot
|
Nourybot
|
||||||
|
Nourybot.out
|
||||||
Nourybot-Api
|
Nourybot-Api
|
||||||
|
Nourybot-Api.out
|
||||||
|
NourybotApi
|
||||||
|
NourybotApi.out
|
||||||
nourybot-api
|
nourybot-api
|
||||||
Nourybot-Web
|
Nourybot-Web
|
||||||
nourybot-web
|
nourybot-web
|
20
Makefile
20
Makefile
|
@ -1,24 +1,18 @@
|
||||||
BINARY_NAME=Nourybot.out
|
BINARY_NAME=Nourybot.out
|
||||||
BINARY_NAME_API=NourybotApi.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:
|
xd:
|
||||||
go build -o ${BINARY_NAME} cmd/bot/main.go
|
cd cmd/bot && go build -o ${BINARY_NAME} && ./${BINARY_NAME} -env="dev"
|
||||||
./${BINARY_NAME} -env="dev"
|
|
||||||
|
|
||||||
xdprod:
|
xdprod:
|
||||||
go build -o ${BINARY_NAME} cmd/bot/main.go
|
cd cmd/bot && go build -o ${BINARY_NAME} && ./${BINARY_NAME} -env="prod"
|
||||||
./${BINARY_NAME} -env="prod"
|
|
||||||
|
|
||||||
jq:
|
jq:
|
||||||
go build -o ${BINARY_NAME} cmd/bot/main.go
|
cd cmd/bot && go build -o ${BINARY_NAME} && ./${BINARY_NAME} -env="dev" | jq
|
||||||
./${BINARY_NAME} -env="dev" | jq
|
|
||||||
|
|
||||||
jqprod:
|
jqprod:
|
||||||
go build -o ${BINARY_NAME} cmd/bot/main.go
|
cd cmd/bot && go build -o ${BINARY_NAME} && ./${BINARY_NAME} -env="prod" | jq
|
||||||
./${BINARY_NAME} -env="prod" | jq
|
|
||||||
|
jqapi:
|
||||||
|
go build -o ${BINARY_NAME_API} cmd/api && ./${BINARY_NAME} | jq
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue