Skip to content

Commit

Permalink
🔨 (Makefile): Добавлен build-and-run & run с .PHONY
Browse files Browse the repository at this point in the history
🐛 Исправлен баг "is up to date" добавлением .PHONY, чтобы Make считал build за команду, а не за существующий каталог
🔨 По-умолчанию цели Make назначен build-and-run с build & run внутри
🚚 Interfaces.go переименован в interfaces.go
  • Loading branch information
shizumico committed Dec 1, 2024
1 parent f23bd4d commit 2e57bc2
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,16 @@
DEFAULT_GOAL := build
DEFAULT_GOAL := build-and-run

build-and-run:
make build
make run

.PHONY: build
build:
go build -ldflags "-s -w" -o bin/prisma.exe ./cmd/api/main.go

.PHONY: run
run:
./bin/prisma.exe

#load-test:
# artillery run --output ./internal/tests/load-test/result.json ./internal/tests/load-test.yaml
File renamed without changes.

0 comments on commit 2e57bc2

Please sign in to comment.