Skip to content

Commit

Permalink
make: ensure phony targets are set
Browse files Browse the repository at this point in the history
Ensure the verify and fix Makefile targets are set as PHONY.
  • Loading branch information
ivanvc committed Sep 16, 2024
1 parent a1bb0ad commit f1eacf8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ all: gofail
clean:
rm -f gofail

.PHONY: verify
verify: verify-gofmt

.PHONY: verify-gofmt
Expand All @@ -19,12 +20,13 @@ verify-gofmt:
test:
go test -v --race -cpu=1,2,4 ./code/ ./runtime/

.PHONY: fix
fix: fix-gofmt

.PHONY: fix-gofmt
fix-gofmt:
gofmt -w .

gofail:
gofail:
GO_BUILD_FLAGS="-v" ./build.sh
./gofail --version

0 comments on commit f1eacf8

Please sign in to comment.