aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorAlexey Kardashevskiy <aik@linux.ibm.com>2021-06-24 16:16:56 +1000
committerDmitry Vyukov <dvyukov@google.com>2021-06-24 09:22:36 +0200
commitec865f6ae70b0902cc21368ce14424446bc0bd60 (patch)
treef0775eda617626e595a0dcaf675ace6b621d27df /Makefile
parent61aa77c4973dad8a2c275ce52a554889e9c31a01 (diff)
Makefile: do not remove empty files from sys/*/gen
The existing "make clean" removes all directories with generated files, even "empty.go" which are tracked by git. This relaxes the clean rule to keep empty.go to stop these warnings: || package github.com/google/syzkaller/tools/syz-stress || imports github.com/google/syzkaller/pkg/csource || imports github.com/google/syzkaller/pkg/mgrconfig || imports github.com/google/syzkaller/sys || imports github.com/google/syzkaller/sys/windows/gen: \ build constraints exclude all Go files in \ /home/aik/p/go/src/github.com/google/syzkaller/sys/windows/gen Fixes: 95777977ade5 ("sys: commit empty source files") Signed-off-by: Alexey Kardashevskiy <aik@linux.ibm.com>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 7c8d673ee..5cd4fd370 100644
--- a/Makefile
+++ b/Makefile
@@ -342,7 +342,8 @@ test: descriptions
$(GO) test -short -coverprofile=.coverage.txt ./...
clean:
- rm -rf ./bin .descriptions sys/*/gen executor/defs.h executor/syscalls.h
+ rm -rf ./bin .descriptions executor/defs.h executor/syscalls.h
+ find sys/*/gen -type f -not -name empty.go -delete
# For a tupical Ubuntu/Debian distribution.
# We use "|| true" for apt-get install because packages are all different on different distros.