aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 7659c27..d2accc5 100644
--- a/Makefile
+++ b/Makefile
@@ -12,6 +12,10 @@ FTPHELPERDIR=/usr/bin
PHPSDIR=php
WWWDIR=/var/www
+GITTAGFLAG := -D'VERSION_STRING="$(shell LC_ALL=C git describe --tags)"'
+MODBUSLOGCFLAGS += $(GITTAGFLAG)
+FTPHELPERCFLAGS += $(GITTAGFLAG)
+
all: modbuslog ftphelper
modbuslog: $(SDIR)/modbuslog.c