13 lines
273 B
Makefile
13 lines
273 B
Makefile
.PHONY: all test
|
|
|
|
COMMIT := $(shell git rev-parse --short HEAD)
|
|
|
|
all:
|
|
go build -ldflags "-X main.commit=${COMMIT}" -o telegabber
|
|
|
|
test:
|
|
go test -v ./config ./ ./telegram ./xmpp ./xmpp/gateway ./persistence ./telegram/formatter ./badger
|
|
|
|
lint:
|
|
$(GOPATH)/bin/golint ./...
|