summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index a8aa8250bb..80faa51342 100644
--- a/Makefile
+++ b/Makefile
@@ -37,8 +37,12 @@ endif
ifeq ($(OS), FreeBSD)
DATE := $(shell date -j -f "%Y-%m-%d %H:%M:%s" "$(GIT_DATE)" +%Y%m%d%H%M)
else
+ifeq ($(OS), Darwin)
+DATE := $(shell date -j -f "%Y-%m-%d %H:%M:%S" "$(GIT_DATE)" +%Y%m%d%H%M)
+else
DATE := $(shell date --date="$(GIT_DATE)" +%Y%m%d%H%M)
endif
+endif
# RPM build parameters
RPMSPECDIR= packaging/rpm