From: Lou Berger Date: Tue, 3 Apr 2018 17:44:06 +0000 (-0400) Subject: Makefile.am: add automatic defintion of VERSION_TYPE_(DEV_|RELEASE) CPP type X-Git-Tag: frr-4.0.1~18^2~1 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=dc8ff3948ecd0437fd178df4cf3e13a32af8295a;p=matthieu%2Ffrr.git Makefile.am: add automatic defintion of VERSION_TYPE_(DEV_|RELEASE) CPP type Signed-off-by: Lou Berger --- diff --git a/Makefile.am b/Makefile.am index 2468dc733d..7a06c53a78 100644 --- a/Makefile.am +++ b/Makefile.am @@ -6,7 +6,8 @@ include common.am AM_CPPFLAGS = -I$(top_srcdir) -I$(top_srcdir)/include -I$(top_srcdir)/lib \ -I$(top_builddir) -I$(top_builddir)/include -I$(top_builddir)/lib AM_CFLAGS = $(WERROR) -DEFS = @DEFS@ -DSYSCONFDIR=\"$(sysconfdir)/\" -DCONFDATE=$(CONFDATE) +VERSION_TYPE := $(shell if echo $(VERSION) | grep -q dev; then echo DEV ; else echo RELEASE ; fi) +DEFS = @DEFS@ -DSYSCONFDIR=\"$(sysconfdir)/\" -DCONFDATE=$(CONFDATE) -DVERSION_TYPE_$(VERSION_TYPE) LIBCAP = @LIBCAP@ EXTRA_DIST =