Revision cb5fc67d

b/Makefile
240 240
qemu-%.tar.bz2:
241 241
	$(SRC_PATH)/scripts/make-release "$(SRC_PATH)" "$(patsubst qemu-%.tar.bz2,%,$@)"
242 242

  
243
VERSION ?= $(shell cat VERSION)
244

  
245
dist: qemu-$(VERSION).tar.bz2
246

  
247
qemu-%.tar.bz2:
248
	$(SRC_PATH)/scripts/make-release "$(SRC_PATH)" "$(patsubst qemu-%.tar.bz2,%,$@)"
249

  
250 243
distclean: clean
251 244
	rm -f config-host.mak config-host.h* config-host.ld $(DOCS) qemu-options.texi qemu-img-cmds.texi qemu-monitor.texi
252 245
	rm -f config-all-devices.mak
......
405 398
	qemu-img.texi qemu-nbd.texi qemu-options.texi \
406 399
	qemu-monitor.texi qemu-img-cmds.texi
407 400

  
401
# Add a dependency on the generated files, so that they are always
402
# rebuilt before other object files
403
Makefile: $(GENERATED_HEADERS)
404

  
408 405
# Include automatically generated dependency files
409 406
# All subdir dependencies come automatically from our recursive subdir rules
410 407
-include $(wildcard *.d)

Also available in: Unified diff