Browse code

Merge pull request #21691 from tonistiigi/fix-gccgo-make

Fix building gccgo from makefile

Tibor Vass authored on 2016/04/07 06:31:59
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
 
... ...
@@ -84,8 +87,8 @@ deb: build
84 84
 docs:
85 85
 	$(MAKE) -C docs docs
86 86
 
87
-gccgo: build
88
-	$(DOCKER_RUN_DOCKER) hack/make.sh gccgo
87
+gccgo: build-gccgo
88
+	$(DOCKER_FLAGS) "$(DOCKER_IMAGE)-gccgo" hack/make.sh gccgo
89 89
 
90 90
 rpm: build
91 91
 	$(DOCKER_RUN_DOCKER) hack/make.sh dynbinary build-rpm