forked from kubevirt/kubevirt
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
46 lines (31 loc) · 842 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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
export GO15VENDOREXPERIMENT := 1
all: build manifests
generate:
./hack/build-go.sh generate ${WHAT}
build: sync fmt vet
./hack/build-go.sh install ${WHAT}
vet:
./hack/build-go.sh vet ${WHAT}
fmt:
./hack/build-go.sh fmt ${WHAT}
test: build
./hack/build-go.sh test ${WHAT}
clean:
./hack/build-go.sh clean ${WHAT}
rm ./bin -rf
distclean: clean
find vendor/ -maxdepth 1 -mindepth 1 -not -name vendor.json -exec rm {} -rf \;
rm -f manifest/*.yaml
sync:
govendor sync
docker: build
./hack/build-docker.sh build ${WHAT}
publish: docker
./hack/build-docker.sh push ${WHAT}
manifests: $(wildcard manifests/*.in)
./hack/build-manifests.sh
check: check-bash vet
test -z "`./hack/build-go.sh fmt`"
check-bash:
find . -name \*.sh -exec bash -n \{\} \;
.PHONY: build fmt test clean distclean sync docker manifests vet publish