github.com/cyverse/go-irodsclient@v0.13.2/Makefile (about)

     1  GO111MODULE=on
     2  GOPROXY=direct
     3  GOPATH=$(shell go env GOPATH)
     4  
     5  .EXPORT_ALL_VARIABLES:
     6  
     7  .PHONY: lint
     8  lint:
     9  	./tools/lint.sh
    10  
    11  .PHONY: format
    12  format:
    13  	./tools/format.sh
    14  
    15  .PHONY: examples
    16  examples:
    17  	CGO_ENABLED=0 GOOS=linux go build -o ./examples/list_dir/list_dir.out ./examples/list_dir/list_dir.go
    18  	CGO_ENABLED=0 GOOS=linux go build -o ./examples/list_acls/list_acls.out ./examples/list_acls/list_acls.go
    19  	CGO_ENABLED=0 GOOS=linux go build -o ./examples/upload/upload.out ./examples/upload/upload.go
    20  	CGO_ENABLED=0 GOOS=linux go build -o ./examples/upload_parallel/upload_parallel.out ./examples/upload_parallel/upload_parallel.go
    21  	CGO_ENABLED=0 GOOS=linux go build -o ./examples/download/download.out ./examples/download/download.go
    22  	CGO_ENABLED=0 GOOS=linux go build -o ./examples/download_resumable/download_resumable.out ./examples/download_resumable/download_resumable.go
    23  	CGO_ENABLED=0 GOOS=linux go build -o ./examples/download_parallel/download_parallel.out ./examples/download_parallel/download_parallel.go
    24  	CGO_ENABLED=0 GOOS=linux go build -o ./examples/download_parallel_resumable/download_parallel_resumable.out ./examples/download_parallel_resumable/download_parallel_resumable.go
    25  	CGO_ENABLED=0 GOOS=linux go build -o ./examples/delete_file/delete_file.out ./examples/delete_file/delete_file.go
    26  	CGO_ENABLED=0 GOOS=linux go build -o ./examples/delete_dir/delete_dir.out ./examples/delete_dir/delete_dir.go
    27  	CGO_ENABLED=0 GOOS=linux go build -o ./examples/make_dir/make_dir.out ./examples/make_dir/make_dir.go
    28  	CGO_ENABLED=0 GOOS=linux go build -o ./examples/list_dir_via_ticket/list_dir.out ./examples/list_dir_via_ticket/list_dir.go
    29  	CGO_ENABLED=0 GOOS=linux go build -o ./examples/list_ticket/list_ticket.out ./examples/list_ticket/list_ticket.go
    30  	CGO_ENABLED=0 GOOS=linux go build -o ./examples/create_ticket/create_ticket.out ./examples/create_ticket/create_ticket.go
    31  	CGO_ENABLED=0 GOOS=linux go build -o ./examples/get_ticket/get_ticket.out ./examples/get_ticket/get_ticket.go
    32  	CGO_ENABLED=0 GOOS=linux go build -o ./examples/get_ticket_anon/get_ticket_anon.out ./examples/get_ticket_anon/get_ticket_anon.go
    33  	CGO_ENABLED=0 GOOS=linux go build -o ./examples/version/version.out ./examples/version/version.go
    34  
    35  .PHONY: test
    36  test:
    37  	go test -timeout 3000s -v -p 1 ./...