Skip to content

Commit 1ca3a95

Browse files
authored
Merge pull request #49 from agaviola80/display-freebsd-portversion
Display FreeBSD sdmon port version.
2 parents 94cda42 + 498ecc4 commit 1ca3a95

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

src/Makefile.freebsd

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
# (c)2018 ogi-it, Ognian Tschakalov
22

3-
#VERSION = 0.01
3+
FILE_PATH = ../freebsd_portversion.txt
4+
5+
.if exists(${FILE_PATH})
6+
VERSION_STRING != cat ../freebsd_portversion.txt
7+
.else
8+
VERSION_STRING != git describe --always
9+
.endif
10+
411
CC = /usr/bin/cc
512
CFLAGS = -Wall -g -D_REENTRANT -DVERSION="\"$(VERSION_STRING)\"" -I. -static
613
LDFLAGS = -lm

0 commit comments

Comments
 (0)