telegabber/Makefile

19 lines
544 B
Makefile
Raw Normal View History

.PHONY: all test
2023-01-18 04:42:10 +00:00
COMMIT := $(shell git rev-parse --short HEAD)
TD_COMMIT := "5bbfc1cf5dab94f82e02f3430ded7241d4653551"
2023-11-11 21:10:23 +00:00
VERSION := "v1.9.0-dev"
MAKEOPTS := "-j4"
2023-01-18 04:42:10 +00:00
2019-10-22 16:36:54 +00:00
all:
2023-01-18 04:42:10 +00:00
go build -ldflags "-X main.commit=${COMMIT}" -o telegabber
test:
2023-06-03 04:20:03 +00:00
go test -v ./config ./ ./telegram ./xmpp ./xmpp/gateway ./persistence ./telegram/formatter ./badger
2019-10-29 01:23:57 +00:00
lint:
$(GOPATH)/bin/golint ./...
build_indocker:
docker build --build-arg "TD_COMMIT=${TD_COMMIT}" --build-arg "VERSION=${VERSION}" --build-arg "MAKEOPTS=${MAKEOPTS}" --output=release --target binaries .