forked from apache/camel-k
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
59 lines (39 loc) · 1.25 KB
/
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
47
48
49
50
51
52
53
54
55
56
57
58
59
VERSION := $(shell ./build/get_version.sh)
build: build-runtime build-operator build-kamel test
build-operator: build-embed-resources
go build -o camel-k-operator ./cmd/camel-k-operator/*.go
build-kamel:
go build -o kamel ./cmd/kamel/*.go
build-embed-resources:
./build/embed_resources.sh deploy
build-runtime:
mvn clean install -f ./runtime/pom.xml
release: prepare-release build images-build images-push test-integration cross-compile
prepare-release:
./build/prepare_release.sh
cross-compile:
./build/cross_compile.sh
dep:
dep ensure -v
generate:
operator-sdk generate k8s
clean:
mvn clean -f ./runtime/pom.xml
go clean
rm -f camel-k-operator
rm -f kamel
rm -rf tmp/_maven_output
codegen:
./tmp/codegen/update-generated.sh
images: images-build
images-build:
./build/package_maven_artifacts.sh && operator-sdk build docker.io/apache/camel-k:$(VERSION)
images-push:
docker push docker.io/apache/camel-k:$(VERSION)
test: check
check:
go test ./...
test-integration: check-integration
check-integration:
go test ./... -tags=integration
.PHONY: build build-operator build-kamel build-embed-resources build-runtime dep codegen images images-build images-push test check test-integration check-integration clean release prepare-release cross-compile