X-Git-Url: https://www.flypig.org.uk/git/?a=blobdiff_plain;f=src%2FMakefile;h=4fdcb5b2470086ace36bdb06d3282b912f6e06cb;hb=75a38b2e2e059fad4dde1935a8289e82786fc18a;hp=6b0a4137179682581066c34130bc882f7eaa9e14;hpb=b58f7a4675fb81bdef00d14b44a3dc77f308165a;p=hashcat.git diff --git a/src/Makefile b/src/Makefile index 6b0a413..4fdcb5b 100644 --- a/src/Makefile +++ b/src/Makefile @@ -63,6 +63,9 @@ FIND := find INSTALL := install RM := rm SED := sed +ifeq ($(UNAME),Darwin) +SED := gsed +endif ## ## Cross compiler paths @@ -81,7 +84,7 @@ CC_WIN_64 := x86_64-w64-mingw32-gcc 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|') ## ## Compiler flags