Skip to content

Commit e8bb082

Browse files
committed
Refactor Makefile: reorganize targets and remove duplicate entries for clean and build
1 parent 283a3c7 commit e8bb082

1 file changed

Lines changed: 10 additions & 9 deletions

File tree

Makefile

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,16 @@
11
check: fmt vet tidy test
22
.PHONY: check
33

4+
clean:
5+
@echo "==> cleaning up <=="
6+
rm -rf ./gh-models
7+
.PHONY: clean
8+
9+
build:
10+
@echo "==> building gh-models binary <=="
11+
script/build
12+
.PHONY: build
13+
414
ci-lint:
515
@echo "==> running Go linter <=="
616
golangci-lint run --timeout 5m ./...
@@ -30,12 +40,3 @@ test:
3040
@echo "==> running Go tests <=="
3141
go test -race -cover ./...
3242
.PHONY: test
33-
34-
build:
35-
script/build
36-
.PHONY: build
37-
38-
clean:
39-
@echo "==> cleaning up <=="
40-
rm -rf ./gh-models
41-
.PHONY: clean

0 commit comments

Comments
 (0)