mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-12-11 16:00:50 -07:00
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>
This commit is contained in:
parent
6f329a5530
commit
7586317bc0
1 changed files with 5 additions and 0 deletions
|
|
@ -88,6 +88,11 @@ config-%.h: config-%.h-timestamp
|
||||||
config-%.h-timestamp: config-%.mak
|
config-%.h-timestamp: config-%.mak
|
||||||
$(call quiet-command, sh $(SRC_PATH)/scripts/create_config < $< > $@, " GEN $(TARGET_DIR)config-$*.h")
|
$(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
|
# will delete the target of a rule if commands exit with a nonzero exit status
|
||||||
.DELETE_ON_ERROR:
|
.DELETE_ON_ERROR:
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue