-
Notifications
You must be signed in to change notification settings - Fork 12
/
Makefile
33 lines (27 loc) · 670 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
test: build
@go test -v ./pkg/...
@$(MAKE) test-cmds
install:
@go install ./pkg/...
build: install
@go build ./cmd/...
assets:
@$(MAKE) -C ./cmd/kubegen/assets rebuild
image: Boxfile
@docker run --rm -ti \
-v $(PWD):$(PWD) \
-v /var/run/docker.sock:/var/run/docker.sock \
-w $(PWD) \
erikh/box:master Boxfile --debug
publish: image
@docker push errordeveloper/kubegen
test-cmds:
@for cmd in kubegen ; do cd cmd/$${cmd} ; \
ln -sf ../../examples .examples ; \
ln -sf ../../../examples assets/.examples ; \
go test -v ; \
rc=$$? ; \
rm -f .examples ; \
rm -f assets/.examples ; \
exit $${rc} ; \
done