From a4747424ba67b9bfd35d6d5fd195adeca52d165d Mon Sep 17 00:00:00 2001 From: lyx0 Date: Tue, 8 Aug 2023 00:41:11 +0200 Subject: [PATCH] tidy up Makefile --- Makefile | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 7f656d1..4525bed 100644 --- a/Makefile +++ b/Makefile @@ -2,15 +2,23 @@ BINARY_NAME=Nourybot.out BINARY_NAME_API=NourybotApi.out xd: - cd cmd/nourybot && go build -o ${BINARY_NAME} && ./${BINARY_NAME} -env="dev" + cd cmd/nourybot && go build -o ${BINARY_NAME} + mv cmd/nourybot/${BINARY_NAME} ./bin/${BINARY_NAME} + ./bin/${BINARY_NAME} -env="dev" xdprod: - cd cmd/nourybot && go build -o ${BINARY_NAME} && ./${BINARY_NAME} -env="prod" + cd cmd/nourybot && go build -o ${BINARY_NAME} + mv cmd/nourybot/${BINARY_NAME} ./bin/${BINARY_NAME} + ./bin/${BINARY_NAME} -env="prod" jq: - cd cmd/nourybot && go build -o ${BINARY_NAME} && ./${BINARY_NAME} -env="dev" | jq + cd cmd/nourybot && go build -o ${BINARY_NAME} + mv cmd/nourybot/${BINARY_NAME} ./bin/${BINARY_NAME} + ./bin/${BINARY_NAME} -env="dev" | jq jqprod: - cd cmd/nourybot && go build -o ${BINARY_NAME} && ./${BINARY_NAME} -env="prod" | jq + cd cmd/nourybot && go build -o ${BINARY_NAME} + mv cmd/nourybot/${BINARY_NAME} ./bin/${BINARY_NAME} + ./bin/${BINARY_NAME} -env="prod" | jq