summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorJunegunn Choi <junegunn.c@gmail.com>2021-02-28 18:28:21 +0900
committerJunegunn Choi <junegunn.c@gmail.com>2021-02-28 18:28:21 +0900
commitbb0502ff4429580e363be708ff301c35479144e3 (patch)
treed2ec8db2becfdfa09d8d622786ddcfed0e0b2d2a /Makefile
parentc256442245836d959f329c10c4b2476a7f438ced (diff)
Check gofmt in `make test`
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile1
1 files changed, 1 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index dec742ed..f246508f 100644
--- a/Makefile
+++ b/Makefile
@@ -66,6 +66,7 @@ endif
all: target/$(BINARY)
test: $(SOURCES)
+ [ -z "$$(gofmt -s -d src)" ] || (gofmt -s -d src; exit 1)
SHELL=/bin/sh GOOS= $(GO) test -v -tags "$(TAGS)" \
github.com/junegunn/fzf/src \
github.com/junegunn/fzf/src/algo \