github.com/GGP1/kure@v0.8.4/Makefile (about)

     1  VERSION = $(shell git tag --points-at HEAD)
     2  COMMIT = $(shell git rev-parse --short HEAD)
     3  
     4  install:
     5  	@go install -ldflags="-s -w" .
     6  
     7  test:
     8  	go test ./...
     9  
    10  test-race:
    11  	go test ./... -race
    12  
    13  proto:
    14  	@cd pb && for type in card entry file totp ; do \
    15  		protoc -I. --go_out=. $$type.proto ; \
    16  	done
    17  
    18  docker-build:
    19  	docker build -t kure .
    20  
    21  docker-run:
    22  	docker run -it --rm kure sh
    23  
    24  cmds:
    25  	@cd docs && go build main.go && ./main --cmd all
    26  
    27  summary:
    28  	@cd docs && go build main.go && ./main --summary