From: Michael S. Tsirkin Date: Tue, 15 Jan 2013 11:27:54 +0000 (+0200) Subject: rules/mak: make clean should blow away timestamp files X-Git-Tag: v1.4.0-rc0~54^2~7 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=7586317bc0db3b993446b21eec914f5b66645ee4;p=users%2Fdwmw2%2Fqemu.git 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 --- diff --git a/rules.mak b/rules.mak index d11a5b4f00..edc2552f08 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: