Make version/git optional
This commit is contained in:
parent
3749942d05
commit
3fed0946e6
|
|
@ -3,8 +3,10 @@ URL=https://github.com/davidnewhall/unifi-poller
|
||||||
MAINT="David Newhall II <david at sleepers dot pro>"
|
MAINT="David Newhall II <david at sleepers dot pro>"
|
||||||
DESC="This daemon polls a Unifi controller at a short interval and stores the collected metric data in an Influx Database."
|
DESC="This daemon polls a Unifi controller at a short interval and stores the collected metric data in an Influx Database."
|
||||||
PACKAGE:=./cmd/$(BINARY)
|
PACKAGE:=./cmd/$(BINARY)
|
||||||
VERSION:=$(shell git tag -l --merged | tail -n1 | tr -d v)
|
ifeq ($(VERSION),)
|
||||||
ITERATION:=$(shell git rev-list --count HEAD)
|
VERSION:=$(shell git tag -l --merged | tail -n1 | tr -d v||echo development)
|
||||||
|
endif
|
||||||
|
ITERATION:=$(shell git rev-list --count HEAD||echo 0)
|
||||||
|
|
||||||
all: man build
|
all: man build
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue