github.com/wunderio/silta-cli@v0.0.0-20240508100559-3017e4ab3a20/Makefile (about)

     1  VERSION=$(shell cat VERSION 2> /dev/null || echo "custom-`date +%Y-%m-%d-%H-%M`" )
     2  
     3  all: build test doc install
     4  
     5  build:
     6  	go mod download
     7  	go build -a -gcflags=-trimpath=$(go env GOPATH) -asmflags=-trimpath=$(go env GOPATH) -ldflags "-X github.com/wunderio/silta-cli/internal/common.Version=$(VERSION)" -o silta
     8  
     9  test:
    10  	go test ./tests
    11  
    12  install:
    13  	cp ./silta ~/.local/bin/silta
    14  
    15  doc:
    16  	silta doc
    17  
    18  clean:
    19  	go clean -r -x
    20  	-rm -rf silta