]> git.proxmox.com Git - qemu.git/commitdiff
rules/mak: make clean should blow away timestamp files
authorMichael S. Tsirkin <mst@redhat.com>
Tue, 15 Jan 2013 11:27:54 +0000 (13:27 +0200)
committerMichael S. Tsirkin <mst@redhat.com>
Tue, 29 Jan 2013 23:31:08 +0000 (01:31 +0200)
Using a global pattern makes it easier to clean out
old generated files.

Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
rules.mak

index d11a5b4f0036000208ee41349e866772dda177e4..edc2552f0886c99608b97f85bd932460fa50da73 100644 (file)
--- a/rules.mak
+++ b/rules.mak
@@ -88,6 +88,11 @@ config-%.h: config-%.h-timestamp
 config-%.h-timestamp: config-%.mak
        $(call quiet-command, sh $(SRC_PATH)/scripts/create_config < $< > $@, "  GEN   $(TARGET_DIR)config-$*.h")
 
+.PHONY: clean-timestamp
+clean-timestamp:
+       rm -f *.timestamp
+clean: clean-timestamp
+
 # will delete the target of a rule if commands exit with a nonzero exit status
 .DELETE_ON_ERROR: