diff options
author | Ulf Samuelsson <ulf.samuelsson@atmel.com> | 2008-07-05 06:58:53 +0000 |
---|---|---|
committer | Ulf Samuelsson <ulf.samuelsson@atmel.com> | 2008-07-05 06:58:53 +0000 |
commit | def8b8d12db954916e37edf09d9f3598f7645784 (patch) | |
tree | 9b714fe03d19674a150a2458adb6c4dd8506326d | |
parent | 9fe187647760261ececa81d622f92fe77efe45aa (diff) |
Add version number to log
-rw-r--r-- | Makefile | 13 |
1 files changed, 11 insertions, 2 deletions
@@ -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) |