aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorJean-Sébastien Pédron <[email protected]>2015-10-12 14:48:50 +0200
committerJean-Sébastien Pédron <[email protected]>2015-10-12 14:59:48 +0200
commitf03a2268c0fec4dde36a77fa59180d409c864a93 (patch)
tree22870320ffc681e83a81fb739bc61a0094391513 /Makefile
parentb58142842e1a888f80042b9decebcede434bec90 (diff)
downloaderlang.mk-f03a2268c0fec4dde36a77fa59180d409c864a93.tar.gz
erlang.mk-f03a2268c0fec4dde36a77fa59180d409c864a93.tar.bz2
erlang.mk-f03a2268c0fec4dde36a77fa59180d409c864a93.zip
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).
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
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 \