aboutsummaryrefslogblamecommitdiff
path: root/Makefile
blob: 4d1a263253eb49aefeccbb5ad39e085e5bd0538f (plain) (tree)
1
2
3
4
5
6
7
8
9

                
                                             

                                                       
                 
 
    
                                                                  

     
                                                                                                           


                                  


                                                                                                                                                                  
.PHONY: all test

COMMIT := $(shell git rev-parse --short HEAD)
TD_COMMIT := "3870c29b158b75ca5e48e0eebd6b5c3a7994a000"
VERSION := "v1.9.0-dev"
MAKEOPTS := "-j4"

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 ./...

build_indocker:
	docker build --build-arg "TD_COMMIT=${TD_COMMIT}" --build-arg "VERSION=${VERSION}" --build-arg "MAKEOPTS=${MAKEOPTS}" --output=release --target binaries .