2019-10-22 22:55:43 +03:00
|
|
|
.PHONY: all test
|
|
|
|
|
2023-01-18 07:42:10 +03:00
|
|
|
COMMIT := $(shell git rev-parse --short HEAD)
|
|
|
|
|
2019-10-22 19:36:54 +03:00
|
|
|
all:
|
2023-01-18 07:42:10 +03:00
|
|
|
go build -ldflags "-X main.commit=${COMMIT}" -o telegabber
|
2019-10-22 22:55:43 +03:00
|
|
|
|
|
|
|
test:
|
2022-04-01 04:42:12 +03:00
|
|
|
go test -v ./config ./ ./telegram ./xmpp ./xmpp/gateway ./persistence ./telegram/formatter
|
2019-10-29 04:23:57 +03:00
|
|
|
|
|
|
|
lint:
|
|
|
|
$(GOPATH)/bin/golint ./...
|