Skip to content

Commit 11ad2bd

Browse files
committed
Makefile: reuse csi-release-tools
Importing the shared rules from csi-release-tools will make it easier to add consistent source code checking.
1 parent 7f3cb68 commit 11ad2bd

File tree

1 file changed

+3
-18
lines changed

1 file changed

+3
-18
lines changed

Makefile

Lines changed: 3 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -12,24 +12,9 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
.PHONY: all clean test
16-
17-
ifdef V
18-
TESTARGS = -v
19-
else
20-
TESTARGS =
21-
endif
22-
15+
# No individual commands at the moment, just packages.
16+
CMDS=
2317
all:
2418
go build `go list ./... | grep -v 'vendor'`
2519

26-
clean:
27-
true
28-
29-
test:
30-
go test `go list ./... | grep -v ^vendor` $(TESTARGS)
31-
go vet `go list ./... | grep -v ^vendor`
32-
diff="$$(gofmt -d $$(find . -name '*.go' | grep -v ^./vendor))" && \
33-
( [ -z "$$diff" ] || ( \
34-
echo "\nvvvvvv formatting errors, fix with patch -p1 vvvvvvvvvv\n$$diff\n^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"; \
35-
false ) )
20+
include release-tools/build.make

0 commit comments

Comments
 (0)