From f03a2268c0fec4dde36a77fa59180d409c864a93 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jean-S=C3=A9bastien=20P=C3=A9dron?= Date: Mon, 12 Oct 2015 14:48:50 +0200 Subject: Use '+%F %T%z' to format the timestamp Option `--rfc-3339` is specific to GNU Coreutils' date(1). This change fixes the use of `make summary` on other platforms such as FreeBSD. The underscore is integrated to the tiem format at the same time; no need for an additional $(subst). --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 1af155d..1e838d2 100644 --- a/Makefile +++ b/Makefile @@ -48,7 +48,7 @@ summary: @touch test/logs/latest.log test/packages/errors.log -@sort test/packages/errors.log | diff test/logs/latest.log - @sort test/packages/errors.log > test/logs/latest.log - @cp test/logs/latest.log "test/logs/$(subst $(empty) $(empty),_,$(shell date --rfc-3339 seconds))" + @cp test/logs/latest.log "test/logs/$(shell date '+%F_%T%z')" search: @$(MAKE) --no-print-directory \ -- cgit v1.2.3