rclone/vendor/github.com/Azure/azure-storage-blob-go/Makefile
sandeepkru 6efedc4043 vendor: Port new Azure Blob Storage SDK #2362
Removed references to older sdk and added new version sdk(2018-03-28)
2018-07-14 10:49:58 +01:00

39 lines
1.1 KiB
Makefile

PROJECT_NAME = azure-storage-blob-go
WORK_DIR = /go/src/github.com/Azure/${PROJECT_NAME}
GOX_ARCH = linux/amd64 windows/amd64 darwin/amd64
define with_docker
WORK_DIR=$(WORK_DIR) docker-compose run --rm $(PROJECT_NAME) $(1)
endef
login: setup ## get a shell into the container
WORK_DIR=$(WORK_DIR) docker-compose run --rm --entrypoint /bin/bash $(PROJECT_NAME)
docker-compose:
which docker-compose
docker-build: docker-compose
WORK_DIR=$(WORK_DIR) docker-compose build --force-rm
docker-clean: docker-compose
WORK_DIR=$(WORK_DIR) docker-compose down
dep: docker-build #
$(call with_docker,dep ensure -v)
setup: clean docker-build dep ## setup environment for development
test: setup ## run go tests
$(call with_docker,go test -race -short -cover -v ./2018-03-28/azblob)
build: setup ## build binaries for the project
$(call with_docker,gox -osarch="$(GOX_ARCH)" ./2018-03-28/azblob)
all: setup test build
clean: docker-clean ## clean environment and binaries
rm -rf bin
help: ## display this help screen
@grep -h -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'