diff mbox

[iputils] iputils: use syntax compatible with busybox date in Makefile

Message ID 1412369389-21815-1-git-send-email-aaro.koskinen@iki.fi
State Not Applicable, archived
Delegated to: David Miller
Headers show

Commit Message

Aaro Koskinen Oct. 3, 2014, 8:49 p.m. UTC
Use syntax compatible with busybox date in Makefile. This fixes an error
message during the build under busybox.

Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi>
---
 Makefile | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
diff mbox

Patch

diff --git a/Makefile b/Makefile
index 54e5a6d..f5f1101 100644
--- a/Makefile
+++ b/Makefile
@@ -115,9 +115,9 @@  LDLIBS=$(LDLIB) $(ADDLIB)
 
 UNAME_N:=$(shell uname -n)
 LASTTAG:=$(shell git describe HEAD | sed -e 's/-.*//')
-TODAY=$(shell date +%Y/%m/%d)
-DATE=$(shell date --date $(TODAY) +%Y%m%d)
-TAG:=$(shell date --date=$(TODAY) +s%Y%m%d)
+TODAY=$(shell date +%Y-%m-%d)
+DATE=$(shell date -d $(TODAY) +%Y%m%d)
+TAG:=$(shell date -d $(TODAY) +s%Y%m%d)
 
 
 # -------------------------------------