Skip to content

Commit 8866986

Browse files
committed
chore: add make run target
1 parent c19e269 commit 8866986

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

‎Makefile‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,18 @@
11
NAME := kael
22
BUILD_DIR := build
33
VERSION ?= dev
4+
RUN_ARGS ?=
45
LDFLAGS := -s -w -X main.Version=$(VERSION)
56

6-
.PHONY: build test clean docker
7+
.PHONY: build run test clean docker
78

89
build:
910
mkdir -p $(BUILD_DIR)
1011
CGO_ENABLED=0 go build -trimpath -ldflags "$(LDFLAGS)" -o $(BUILD_DIR)/$(NAME) ./cmd/kael
1112

13+
run:
14+
go run ./cmd/kael $(RUN_ARGS)
15+
1216
test:
1317
go test ./...
1418

0 commit comments

Comments
 (0)