diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -1,7 +1,9 @@ .PHONY: all test +COMMIT := $(shell git rev-parse --short HEAD) + all: - go build -o telegabber + go build -ldflags "-X main.commit=${COMMIT}" -o telegabber test: go test -v ./config ./ ./telegram ./xmpp ./xmpp/gateway ./persistence ./telegram/formatter |