Skip to content

Commit 4697eb1

Browse files
authored
Merge pull request #34 from Airblader/version-without-git
Adjust Makefile to build without git
2 parents 6ad1a8c + 5f20629 commit 4697eb1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
TARGET = unclutter
2+
VERSION = 1.4
23
SDIR = src
34
IDIR = include
45
ODIR = obj
@@ -13,7 +14,7 @@ CC = gcc
1314
LD = $(CC)
1415
PKG_CONFIG = pkg-config
1516

16-
CPPFLAGS += -D'__VERSION="$(shell git describe --all --long --always)"' "-I$(IDIR)"
17+
CPPFLAGS += -D'__VERSION="${VERSION}"' "-I$(IDIR)"
1718

1819
CFLAGS += -std=gnu99
1920
CFLAGS += -Wall -Wundef -Wshadow -Wformat-security

0 commit comments

Comments
 (0)