From 7e7c776d915b4016eed1fa2067274b391d0a7a13 Mon Sep 17 00:00:00 2001 From: Joachim Bauch Date: Thu, 22 May 2014 18:59:27 +0200 Subject: [PATCH] Fail "make" if jshint returns an error. --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 70f43dd3..fff24285 100644 --- a/Makefile +++ b/Makefile @@ -108,7 +108,7 @@ javascript: dir=$(OUTPUT_JS) $(RJSFLAGS) jshint: - find static/ -wholename static/js/libs -prune -o -name "*.js" -exec jshint {} \; + find static/ -wholename static/js/libs -prune -o -name "*.js" -print0 | xargs -0 -n1 jshint release: GOPATH = "$(DIST):$(VENDOR):$(CURDIR)" release: LDFLAGS = -X main.version $(VERSION) -X main.defaultConfig $(CONFIG_PATH)/$(CONFIG_FILE)