diff options
author | Keir Fraser <keir.fraser@citrix.com> | 2008-04-21 20:08:29 +0100 |
---|---|---|
committer | Keir Fraser <keir.fraser@citrix.com> | 2008-04-21 20:08:29 +0100 |
commit | 103cff93e239ecba1a95c931f2b13f43114b923f (patch) | |
tree | 3bec92c04c4d77cd9596837de4b7719b50ea17b8 /xen/Makefile | |
parent | 66a882392272346ce1d0bc5a26568894f450a7c0 (diff) | |
download | xen-103cff93e239ecba1a95c931f2b13f43114b923f.tar.gz xen-103cff93e239ecba1a95c931f2b13f43114b923f.tar.bz2 xen-103cff93e239ecba1a95c931f2b13f43114b923f.zip |
Cache figlet output across builds, and provide src-tarball target
which creates figlet output and then deletes figlet itself (which is
not licensed under GPL).
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
Diffstat (limited to 'xen/Makefile')
-rw-r--r-- | xen/Makefile | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/xen/Makefile b/xen/Makefile index f2d2c7aa3c..092089fd55 100644 --- a/xen/Makefile +++ b/xen/Makefile @@ -44,6 +44,7 @@ _clean: delete-unfresh-files $(MAKE) -f $(BASEDIR)/Rules.mk -C arch/$(TARGET_ARCH) clean rm -f include/asm *.o $(TARGET)* *~ core rm -f include/asm-*/asm-offsets.h + [ -d tools/figlet ] && rm -f .banner* .PHONY: _distclean _distclean: clean @@ -70,8 +71,14 @@ delete-unfresh-files: rm -f include/xen/compile.h; \ fi +.banner: Makefile + $(MAKE) -C tools + @tools/figlet/figlet -d tools/figlet Xen $(XEN_FULLVERSION) 2>$@2 >$@1 + @cat $@1 $@2 >$@ + @rm -f $@1 $@2 + # compile.h contains dynamic build info. Rebuilt on every 'make' invocation. -include/xen/compile.h: include/xen/compile.h.in +include/xen/compile.h: include/xen/compile.h.in .banner @sed -e 's/@@date@@/$(shell LC_ALL=C date)/g' \ -e 's/@@time@@/$(shell LC_ALL=C date +%T)/g' \ -e 's/@@whoami@@/$(USER)/g' \ @@ -83,7 +90,8 @@ include/xen/compile.h: include/xen/compile.h.in -e 's/@@extraversion@@/$(XEN_EXTRAVERSION)/g' \ -e 's!@@changeset@@!$(shell ((hg parents --template "{date|date} {rev}:{node|short}" >/dev/null && hg parents --template "{date|date} {rev}:{node|short}") || echo "unavailable") 2>/dev/null)!g' \ < include/xen/compile.h.in > $@.new - tools/figlet/figlet -d tools/figlet Xen $(XEN_FULLVERSION) >> $@.new + @grep \" .banner >> $@.new + @grep -v \" .banner @mv -f $@.new $@ include/asm-$(TARGET_ARCH)/asm-offsets.h: arch/$(TARGET_ARCH)/asm-offsets.s |