Skip to content

Commit c929b3b

Browse files
Fix Makefile: ensure proper tabs for recipe lines
1 parent e3f231a commit c929b3b

1 file changed

Lines changed: 19 additions & 11 deletions

File tree

Makefile

Lines changed: 19 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,22 +2,30 @@ BINARY := initium
22
MODULE := github.com/kitstream/initium
33
VERSION ?= dev
44
LDFLAGS := -s -w -X main.version=$(VERSION)
5+
56
.PHONY: all build test lint clean
7+
68
all: lint test build
9+
710
build:
8-
CGO_ENABLED=0 go build -trimpath -ldflags="$(LDFLAGS)" -o bin/$(BINARY) ./cmd/initium
11+
CGO_ENABLED=0 go build -trimpath -ldflags="$(LDFLAGS)" -o bin/$(BINARY) ./cmd/initium
12+
913
test:
10-
go test ./... -count=1 -timeout 60s -race
14+
go test ./... -count=1 -timeout 60s -race
15+
1116
lint:
12-
go vet ./...
13-
@command -v staticcheck >/dev/null 2>&1 && staticcheck ./... || echo "staticcheck not installed, skipping"
17+
go vet ./...
18+
@command -v staticcheck >/dev/null 2>&1 && staticcheck ./... || echo "staticcheck not installed, skipping"
19+
1420
clean:
15-
rm -rf bin/
21+
rm -rf bin/
22+
1623
docker-build:
17-
docker buildx build --platform linux/amd64,linux/arm64 \
18-
--build-arg VERSION=$(VERSION) \
19-
-t ghcr.io/kitstream/initium:$(VERSION) .
24+
docker buildx build --platform linux/amd64,linux/arm64 \
25+
--build-arg VERSION=$(VERSION) \
26+
-t ghcr.io/kitstream/initium:$(VERSION) .
27+
2028
docker-push:
21-
docker buildx build --platform linux/amd64,linux/arm64 \
22-
--build-arg VERSION=$(VERSION) \
23-
-t ghcr.io/kitstream/initium:$(VERSION) --push .
29+
docker buildx build --platform linux/amd64,linux/arm64 \
30+
--build-arg VERSION=$(VERSION) \
31+
-t ghcr.io/kitstream/initium:$(VERSION) --push .

0 commit comments

Comments
 (0)