summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 2 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index 870ab9851..9a72c6603 100644
--- a/Makefile
+++ b/Makefile
@@ -83,10 +83,8 @@ lint: .gopathok varlink_generate
@./.tool/lint
gofmt:
- @./hack/verify-gofmt.sh
-
-fix_gofmt:
- @./hack/verify-gofmt.sh -f
+ find . -name '*.go' ! -path './vendor/*' -exec gofmt -s -w {} \+
+ git diff --exit-code
test/bin2img/bin2img: .gopathok $(wildcard test/bin2img/*.go)
$(GO) build -ldflags '$(LDFLAGS)' -tags "$(BUILDTAGS) containers_image_ostree_stub" -o $@ $(PROJECT)/test/bin2img