Browse code

Fix building gccgo from makefile

Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>

Tonis Tiigi authored on 2016/04/01 02:35:56
Showing 1 changed files
... ...
@@ -1,4 +1,4 @@
1
-.PHONY: all binary build cross default docs docs-build docs-shell shell test test-docker-py test-integration-cli test-unit validate
1
+.PHONY: all binary build build-gccgo cross default docs docs-build docs-shell shell gccgo test test-docker-py test-integration-cli test-unit validate
2 2
 
3 3
 # set the graph driver as the current graphdriver if not set
4 4
 DOCKER_GRAPHDRIVER := $(if $(DOCKER_GRAPHDRIVER),$(DOCKER_GRAPHDRIVER),$(shell docker info | grep "Storage Driver" | sed 's/.*: //'))
... ...
@@ -66,6 +66,9 @@ binary: build
66 66
 build: bundles
67 67
 	docker build ${DOCKER_BUILD_ARGS} -t "$(DOCKER_IMAGE)" -f "$(DOCKERFILE)" .
68 68
 
69
+build-gccgo: bundles
70
+	docker build ${DOCKER_BUILD_ARGS} -t "$(DOCKER_IMAGE)-gccgo" -f Dockerfile.gccgo .
71
+
69 72
 bundles:
70 73
 	mkdir bundles
71 74
 
... ...
@@ -83,8 +86,8 @@ deb: build
83 83
 docs:
84 84
 	$(MAKE) -C docs docs
85 85
 
86
-gccgo: build
87
-	$(DOCKER_RUN_DOCKER) hack/make.sh gccgo
86
+gccgo: build-gccgo
87
+	$(DOCKER_FLAGS) "$(DOCKER_IMAGE)-gccgo" hack/make.sh gccgo
88 88
 
89 89
 rpm: build
90 90
 	$(DOCKER_RUN_DOCKER) hack/make.sh dynbinary build-rpm