summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile10
1 files changed, 5 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index c3b2307..6f6b9c4 100644
--- a/Makefile
+++ b/Makefile
@@ -4,11 +4,11 @@ IMAGE_TAG := $(PROJECT_NAME):$(GIT_BRANCH)
.PHONY: clean setup build test run
-sparkled:
- @go build -o sparkled ./cmd/sparkled/main.go
+bin/sparkled:
+ @go build -o ./bin/sparkled ./cmd/sparkled/main.go
clean:
- @rm -f sparkled
+ @rm -f ./bin/sparkled
@go clean -testcache
@docker image rm -f $(IMAGE_TAG)
@@ -18,7 +18,7 @@ setup:
@command -v godotenv
@command -v yamlfmt
-build: sparkled
+build: bin/sparkled
test-unit:
@go test -shuffle=on ./...
@@ -35,7 +35,7 @@ build-builder-image:
@docker build --target build --tag $(IMAGE_TAG) .
run: clean build
- @godotenv -f .env.local,.env ./sparkled
+ @godotenv -f .env.local,.env ./bin/sparkled
run-image: clean build-image
@docker run --rm --network host --env-file .env.local -p 10000:10000 -p 9901:9901 -p 8080:8080 -it $(IMAGE_TAG)