github.com/CyCoreSystems/ari@v4.8.4+incompatible/Makefile (about)

     1  SHELL = /usr/bin/env bash
     2  
     3  EVENT_SPEC_FILE = internal/eventgen/json/events-2.0.0.json
     4  
     5  all: dep api clients contributors extensions
     6  
     7  contributors:
     8  	write_mailmap > CONTRIBUTORS
     9  
    10  protobuf: ari.proto
    11  	protoc -I. -I./vendor --gogofast_out=Mgoogle/protobuf/timestamp.proto=github.com/gogo/protobuf/types,plugins=grpc:. ari.proto
    12  
    13  dep:
    14  	dep ensure
    15  
    16  api:
    17  	go build ./
    18  	go build ./stdbus
    19  	go build ./rid
    20  
    21  test:
    22  	go test `go list ./... | grep -v /vendor/`
    23  
    24  check: all
    25  	golangci-lint run
    26  	#gometalinter --disable=gotype client/native ext/...
    27  
    28  clients:
    29  	go build ./client/native
    30  	go build ./client/arimocks
    31  
    32  extensions:
    33  	go build ./ext/audiouri
    34  	go build ./ext/bridgemon
    35  	go build ./ext/keyfilter
    36  	go build ./ext/play
    37  	go build ./ext/record
    38  
    39  events:
    40  	go build -o bin/eventgen ./internal/eventgen/...
    41  	@./bin/eventgen internal/eventgen/template.tmpl ${EVENT_SPEC_FILE} |goimports > events_gen.go
    42  	
    43  mock:
    44  	go get -u github.com/vektra/mockery/.../
    45  	rm -Rf vendor/ client/arimocks
    46  	mockery -name . -outpkg arimocks -output client/arimocks
    47  	dep ensure
    48  
    49  ci: check