Index: Makefile =================================================================== RCS file: /sources/qemu/qemu/Makefile,v retrieving revision 1.110 diff -u -r1.110 Makefile --- Makefile 7 Jan 2007 22:04:40 -0000 1.110 +++ Makefile 22 Jan 2007 09:50:17 -0000 @@ -8,6 +8,8 @@ BASE_CFLAGS= BASE_LDFLAGS= +SNAPSHOT= + BASE_CFLAGS += $(OS_CFLAGS) ifeq ($(ARCH),sparc) BASE_CFLAGS += -mcpu=ultrasparc @@ -128,7 +130,15 @@ html: qemu-doc.html qemu-tech.html -FILE=qemu-$(shell cat VERSION) +ifndef VERSION +VERSION=$(shell cat VERSION) +endif + +ifneq ($(SNAPSHOT),) +SNAPSHOT=.$(shell date -u "+%Y%m%d%H%M") +endif + +FILE=qemu-$(VERSION)$(SNAPSHOT) # tar release (use 'make -k tar' on a checkouted tree) tar: