From 41bbf437e1e843fd3ab5603ec4c2eb4a42dca76f Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Fri, 18 Aug 2017 11:14:20 +0200 Subject: Makefile: enforce formatting of sys files in presubmit --- Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 708a74467..7941814ef 100644 --- a/Makefile +++ b/Makefile @@ -10,6 +10,7 @@ endif manager fuzzer executor \ ci hub \ execprog mutate prog2c stress repro upgrade db \ + bin/syz-sysgen bin/syz-extract bin/syz-fmt \ extract generate \ android \ format tidy test arch presubmit clean @@ -81,9 +82,12 @@ generate: bin/syz-sysgen bin/syz-sysgen: go build $(GOFLAGS) -o $@ ./sys/syz-sysgen -format: +format: bin/syz-fmt go fmt ./... clang-format --style=file -i executor/*.cc executor/*.h tools/kcovtrace/*.c + bin/syz-fmt sys +bin/syz-fmt: + go build $(GOFLAGS) -o $@ ./tools/syz-fmt tidy: # A single check is enabled for now. But it's always fixable and proved to be useful. -- cgit mrf-deployment