Current location

narf Source control manager Git

aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlivier Mehani <shtrom@ssji.net>2015-04-14 19:54:28 +1000
committerOlivier Mehani <shtrom@ssji.net>2015-04-14 20:39:54 +1000
commite94df0785d57b78ce13366418bb568e9fa1bd9f3 (patch)
treef8680df8cdb9ca6a2526ce6f8a25070ab93d922f
parenta33ea523d26fd4e6061a5963040c0c86c990ce78 (diff)
Use unique dateuse-unique-date
Generate the current date once in make, rather than each time in the name pattern. This avoid issue when building overnight. Signed-off-by: Olivier Mehani <shtrom@ssji.net>
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 9314374..9aed736 100644
--- a/Makefile
+++ b/Makefile
@@ -12,7 +12,7 @@ DESTINATION = card
# yes no
ENABLE_NONFREE = no
BUILD = $(MACHINE)-$(ARCHITECTURE)-$(DESTINATION)
-TODAY := `date +%Y-%m-%d`
+TODAY := $(shell date +%Y-%m-%d)
NAME = build/freedombox-unstable_$(TODAY)_$(BUILD)
WEEKLY_DIR = torrent/freedombox-unstable_$(TODAY)
IMAGE = $(NAME).img