Browse Source

Merge pull request #221 from ksherlock/echo-n

echo -n portability
Steffen Jaeckel 8 years ago
parent
commit
04573d8100
1 changed files with 1 additions and 1 deletions
  1. 1 1
      makefile_include.mk

+ 1 - 1
makefile_include.mk

@@ -92,7 +92,7 @@ CFLAGS += -Wno-typedef-redefinition -Wno-tautological-compare
 endif
 endif
 
 
 
 
-GIT_VERSION := $(shell [ -e .git ] && { echo -n git- ; git describe --tags --always --dirty ; } || echo $(VERSION))
+GIT_VERSION := $(shell [ -e .git ] && { printf git- ; git describe --tags --always --dirty ; } || echo $(VERSION))
 ifneq ($(GIT_VERSION),)
 ifneq ($(GIT_VERSION),)
 CFLAGS += -DGIT_VERSION=\"$(GIT_VERSION)\"
 CFLAGS += -DGIT_VERSION=\"$(GIT_VERSION)\"
 endif
 endif