Browse code

Alphabetize makefile targets

Sorts the makefile targets alphabetically

Signed-off-by: Christopher Jones <tophj@linux.vnet.ibm.com>

Christopher Jones authored on 2016/08/30 03:06:45
Showing 1 changed files
... ...
@@ -1,4 +1,4 @@
1
-.PHONY: all binary build cross deb docs help init-go-pkg-cache install manpages rpm run shell test test-docker-py test-integration-cli tgz test-unit validate win
1
+.PHONY: all binary build cross deb docs help init-go-pkg-cache install manpages rpm run shell test test-docker-py test-integration-cli test-unit tgz validate win
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 2>&1 | grep "Storage Driver" | sed 's/.*: //'))
... ...
@@ -84,27 +84,30 @@ build: bundles init-go-pkg-cache
84 84
 bundles:
85 85
 	mkdir bundles
86 86
 
87
-init-go-pkg-cache:
88
-	mkdir -p $(shell echo $(PKGCACHE_MAP) | sed -E 's@([^: ]*):[^ ]*@$(PKGCACHE_DIR)/\1@g')
89
-
90 87
 cross: build ## cross build the binaries for darwin, freebsd and\nwindows
91 88
 	$(DOCKER_RUN_DOCKER) hack/make.sh dynbinary binary cross
92 89
 
93
-win: build ## cross build the binary for windows
94
-	$(DOCKER_RUN_DOCKER) hack/make.sh win
95
-
96
-tgz: build ## build the archives (.zip on windows and .tgz\notherwise) containing the binaries
97
-	$(DOCKER_RUN_DOCKER) hack/make.sh dynbinary binary cross tgz
98
-
99 90
 deb: build  ## build the deb packages
100 91
 	$(DOCKER_RUN_DOCKER) hack/make.sh dynbinary build-deb
101 92
 
102 93
 docs: ## build the docs
103 94
 	$(MAKE) -C docs docs
104 95
 
96
+help: ## this help
97
+	@awk 'BEGIN {FS = ":.*?## "} /^[a-zA-Z_-]+:.*?## / {sub("\\\\n",sprintf("\n%22c"," "), $$2);printf "\033[36m%-20s\033[0m %s\n", $$1, $$2}' $(MAKEFILE_LIST)
98
+
99
+init-go-pkg-cache:
100
+	mkdir -p $(shell echo $(PKGCACHE_MAP) | sed -E 's@([^: ]*):[^ ]*@$(PKGCACHE_DIR)/\1@g')
101
+
105 102
 install: ## install the linux binaries
106 103
 	KEEPBUNDLE=1 hack/make.sh install-binary
107 104
 
105
+manpages: ## Generate man pages from go source and markdown
106
+	docker build -t docker-manpage-dev -f "man/$(DOCKERFILE)" ./man
107
+	docker run --rm \
108
+		-v $(PWD):/go/src/github.com/docker/docker/ \
109
+		docker-manpage-dev
110
+
108 111
 rpm: build ## build the rpm packages
109 112
 	$(DOCKER_RUN_DOCKER) hack/make.sh dynbinary build-rpm
110 113
 
... ...
@@ -126,15 +129,12 @@ test-integration-cli: build ## run the integration tests
126 126
 test-unit: build ## run the unit tests
127 127
 	$(DOCKER_RUN_DOCKER) hack/make.sh test-unit
128 128
 
129
+tgz: build ## build the archives (.zip on windows and .tgz\notherwise) containing the binaries
130
+	$(DOCKER_RUN_DOCKER) hack/make.sh dynbinary binary cross tgz
131
+
129 132
 validate: build ## validate DCO, Seccomp profile generation, gofmt,\n./pkg/ isolation, golint, tests, tomls, go vet and vendor
130 133
 	$(DOCKER_RUN_DOCKER) hack/make.sh validate-dco validate-default-seccomp validate-gofmt validate-pkg validate-lint validate-test validate-toml validate-vet validate-vendor
131 134
 
132
-manpages: ## Generate man pages from go source and markdown
133
-	docker build -t docker-manpage-dev -f "man/$(DOCKERFILE)" ./man
134
-	docker run --rm \
135
-		-v $(PWD):/go/src/github.com/docker/docker/ \
136
-		docker-manpage-dev
137
-
138
-help: ## this help
139
-	@awk 'BEGIN {FS = ":.*?## "} /^[a-zA-Z_-]+:.*?## / {sub("\\\\n",sprintf("\n%22c"," "), $$2);printf "\033[36m%-20s\033[0m %s\n", $$1, $$2}' $(MAKEFILE_LIST)
135
+win: build ## cross build the binary for windows
136
+	$(DOCKER_RUN_DOCKER) hack/make.sh win
140 137