github.com/NaverCloudPlatform/ncloud-sdk-go-v2@v1.6.13/Makefile (about)

     1  GOFMT_FILES?=$$(find . -not -path "./vendor/*" -name "*.go")
     2  
     3  ifeq ($(OS)),Windows_NT)
     4  	SDK_ONLY_PKGS=$(shell go list ./... | findstr /v "\/vendor")
     5  else
     6  	SDK_ONLY_PKGS=$(shell go list ./... | grep -v "/vendor/")
     7  endif
     8  
     9  all: deps build
    10  
    11  test:
    12  	@echo "go(ginkgo) test SDK"
    13  	@ginkgo -r
    14  
    15  fmt:
    16  	@gofmt -w -s $(GOFMT_FILES)
    17  
    18  build:
    19  	@echo "go build SDK"
    20  	@go build ${SDK_ONLY_PKGS}
    21  
    22  deps:
    23  	go get golang.org/x/net/context
    24  	go get golang.org/x/oauth2