check if build dir exists before chown

Signed-off-by: Andrew Hsu <andrewhsu@docker.com>
Upstream-commit: 46dd23f1fc2863741783f0584dad1a42815e5438
Component: packaging
This commit is contained in:
Andrew Hsu
2017-07-14 04:35:47 +00:00
parent 6da354bd2c
commit 16b3113441
+1 -1
View File
@@ -14,7 +14,7 @@ help: ## show make targets
@awk 'BEGIN {FS = ":.*?## "} /^[a-zA-Z_-]+:.*?## / {sub("\\\\n",sprintf("\n%22c"," "), $$2);printf " \033[36m%-20s\033[0m %s\n", $$1, $$2}' $(MAKEFILE_LIST)
clean: ## remove build artifacts
$(CHOWN) -R $(shell id -u):$(shell id -g) build
[ ! -d build ] || $(CHOWN) -R $(shell id -u):$(shell id -g) build
$(RM) -r build
static: static-linux cross-mac cross-win cross-arm ## create all static packages