13 lines
264 B
Makefile
13 lines
264 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
|
|
|
|
lint:
|
|
$(GOPATH)/bin/golint ./...
|