Makefile: Enable working with symlinked directories

Resolves #698
This commit is contained in:
Zach Riggle 2018-08-31 00:04:51 -05:00 committed by Dmitry Vyukov
parent a4718693a3
commit 7ce4cd3a7e

View File

@ -166,7 +166,9 @@ bin/syz-sysgen:
format: format_go format_cpp format_sys
format_go:
$(GO) fmt ./...
# When working from a symlinked directory outside of GOPATH, 'go fmt' will fail.
# We need to invoke it from a path inside of GOPATH.
cd $(realpath ${PWD}) && $(GO) fmt ./...
format_cpp:
clang-format --style=file -i executor/*.cc executor/*.h tools/kcovtrace/*.c