summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
b58f7a4)
sed on OSX doesn't have -r so default to the usage of GNU sed
INSTALL := install
RM := rm
SED := sed
INSTALL := install
RM := rm
SED := sed
+ifeq ($(UNAME),Darwin)
+SED := gsed
+endif
##
## Cross compiler paths
##
## Cross compiler paths
COMPTIME := $(shell date +%s)
VERSION_EXPORT := $Format:%D$
COMPTIME := $(shell date +%s)
VERSION_EXPORT := $Format:%D$
-VERSION_TAG := $(shell test -d .git && git describe --tags --dirty=+ || echo "$(VERSION_EXPORT)"|cut -d, -f2|sed -r 's|.* (\w+/)?([^ ]+)|\2|')
+VERSION_TAG := $(shell test -d .git && git describe --tags --dirty=+ || echo "$(VERSION_EXPORT)"|cut -d, -f2|$(SED) -r 's|.* (\w+/)?([^ ]+)|\2|')