github.com/hupe1980/go-huggingface@v0.0.15/Makefile (about)

     1  PROJECTNAME=$(shell basename "$(PWD)")
     2  
     3  # Go related variables.
     4  # Make is verbose in Linux. Make it silent.
     5  MAKEFLAGS += --silent
     6  
     7  .PHONY: setup
     8  ## setup: Setup installes dependencies
     9  setup:
    10  	@go mod tidy
    11  
    12  .PHONY: lint
    13  ## test: Runs the linter
    14  lint:
    15  	golangci-lint run --color=always --sort-results ./...
    16  
    17  .PHONY: test
    18  ## test: Runs go test with default values
    19  test: 
    20  	@go test -v -race -count=1  ./...
    21  
    22  .PHONY: help
    23  ## help: Prints this help message
    24  help: Makefile
    25  	@echo
    26  	@echo " Choose a command run in "$(PROJECTNAME)":"
    27  	@echo
    28  	@sed -n 's/^##//p' $< | column -t -s ':' |  sed -e 's/^/ /'
    29  	@echo