-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
28 lines (24 loc) · 733 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# SPDX-License-Identifier: Apache-2.0
# Copyright 2015 The Kubernetes Authors
# Copyright 2019 Wind River Systems, Inc.
TOOL=deepequal-gen
LOGLEVEL?=0
fmt:
go fmt ./...
vet: fmt
go vet ./...
test: vet
@if ! git diff --quiet HEAD; then \
echo "FAIL: git client is not clean"; \
false; \
fi
@go build -o /tmp/$(TOOL)
PKGS=$$(go list ./output_tests/... | paste -sd' ' -); \
/tmp/$(TOOL) --logtostderr --v=${LOGLEVEL} -i $$(echo $$PKGS | sed 's/ /,/g') -O zz_generated -h hack/boilerplate.txt
@if ! git diff --quiet HEAD; then \
echo "FAIL: output files changed; please verify output_tests.diff"; \
git diff > output_tests.diff; \
false; \
else \
echo "SUCCESS: no differences in generated output"; \
fi