aboutsummaryrefslogtreecommitdiff
path: root/rules.mak
diff options
context:
space:
mode:
authorMichael S. Tsirkin <mst@redhat.com>2013-01-15 13:27:54 +0200
committerMichael S. Tsirkin <mst@redhat.com>2013-01-30 01:31:08 +0200
commit7586317bc0db3b993446b21eec914f5b66645ee4 (patch)
treed0d04b9260eb618b898b301592608d415f771679 /rules.mak
parent6f329a55305c3b14da3c7b35f19379bae745e728 (diff)
downloadqemu-7586317bc0db3b993446b21eec914f5b66645ee4.zip
qemu-7586317bc0db3b993446b21eec914f5b66645ee4.tar.gz
qemu-7586317bc0db3b993446b21eec914f5b66645ee4.tar.bz2
rules/mak: make clean should blow away timestamp files
Using a global pattern makes it easier to clean out old generated files. Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'rules.mak')
-rw-r--r--rules.mak5
1 files changed, 5 insertions, 0 deletions
diff --git a/rules.mak b/rules.mak
index d11a5b4..edc2552 100644
--- 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: