-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathMakefile
27 lines (20 loc) · 872 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
JAVA_PLUGIN_INSTALLED = $(cf plugins | grep -q)
all: install
compile: cf_cli_java_plugin.go
go build -o build/cf-cli-java-plugin cf_cli_java_plugin.go
compile-all: cf_cli_java_plugin.go
ginkgo -p
GOOS=linux GOARCH=386 go build -o build/cf-cli-java-plugin-linux32 cf_cli_java_plugin.go
GOOS=linux GOARCH=amd64 go build -o build/cf-cli-java-plugin-linux64 cf_cli_java_plugin.go
GOOS=darwin GOARCH=amd64 go build -o build/cf-cli-java-plugin-osx cf_cli_java_plugin.go
GOOS=windows GOARCH=386 go build -o build/cf-cli-java-plugin-win32.exe cf_cli_java_plugin.go
GOOS=windows GOARCH=amd64 go build -o build/cf-cli-java-plugin-win64.exe cf_cli_java_plugin.go
clean:
rm -r build
install: compile remove
yes | cf install-plugin build/cf-cli-java-plugin
remove: $(objects)
ifeq ($(JAVA_PLUGIN_INSTALLED),)
cf uninstall-plugin java || true
endif
vclean: remove clean