summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorUlf Samuelsson <ulf.samuelsson@atmel.com>2008-07-05 06:58:53 +0000
committerUlf Samuelsson <ulf.samuelsson@atmel.com>2008-07-05 06:58:53 +0000
commitdef8b8d12db954916e37edf09d9f3598f7645784 (patch)
tree9b714fe03d19674a150a2458adb6c4dd8506326d /Makefile
parent9fe187647760261ececa81d622f92fe77efe45aa (diff)
Add version number to log
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile13
1 files changed, 11 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 92a733dca..f57d1f396 100644
--- a/Makefile
+++ b/Makefile
@@ -475,8 +475,17 @@ configured: dirs host-sed kernel-headers uclibc-config busybox-config linux26-co
prepatch: gcc-patched binutils-patched gdb-patched uclibc-patched
-log:
- $(MAKE) > $(PROJECT).log 2>&1
+.lognr:
+ @echo "0" > .lognr
+
+log: .lognr
+ @expr `cat .lognr` + 1 > .lognr
+ @echo Creating $(PROJECT)-`cat .lognr`.log
+ @$(MAKE) > $(PROJECT)-`cat .lognr`.log 2>&1
+
+tail:
+ grep "\.tar\." $(PROJECT)-`cat .lognr`.log
+ tail --lines=25 $(PROJECT)-`cat .lognr`.log
cross: $(BASE_TARGETS)