From e871af1ef8b7642b2173b79d45b8d74012bfe43c Mon Sep 17 00:00:00 2001 From: David Newhall II Date: Wed, 12 Jun 2019 11:05:05 -0700 Subject: [PATCH] Make version/git optional --- integrations/promunifi/Makefile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/integrations/promunifi/Makefile b/integrations/promunifi/Makefile index 965d618e..1f99e583 100644 --- a/integrations/promunifi/Makefile +++ b/integrations/promunifi/Makefile @@ -3,8 +3,10 @@ URL=https://github.com/davidnewhall/unifi-poller MAINT="David Newhall II " DESC="This daemon polls a Unifi controller at a short interval and stores the collected metric data in an Influx Database." PACKAGE:=./cmd/$(BINARY) -VERSION:=$(shell git tag -l --merged | tail -n1 | tr -d v) -ITERATION:=$(shell git rev-list --count HEAD) +ifeq ($(VERSION),) + 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