summaryrefslogtreecommitdiff
path: root/Makefile.am
diff options
context:
space:
mode:
authorLou Berger <lberger@labn.net>2018-04-03 13:44:06 -0400
committerLou Berger <lberger@labn.net>2018-04-03 13:47:20 -0400
commit1780ad33269c6d0be2a23eb8428cf7151c6a2cc5 (patch)
tree179dbefbbab1366e384c6ae1f65936218650e24c /Makefile.am
parent2d75202acccd81ba3b46d8f2ebb9c2e5ed64e237 (diff)
Makefile.am: add automatic defintion of VERSION_TYPE_(DEV_|RELEASE) CPP type
Signed-off-by: Lou Berger <lberger@labn.net>
Diffstat (limited to 'Makefile.am')
-rw-r--r--Makefile.am3
1 files changed, 2 insertions, 1 deletions
diff --git a/Makefile.am b/Makefile.am
index 737b1acf64..e7d20be72a 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 =