X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=rules.mak;h=edc2552f0886c99608b97f85bd932460fa50da73;hb=refs%2Fheads%2Fbackup2;hp=4673aada075a0e3fb2c0be5b55b9d4cb1a85bacb;hpb=2165588274332e9f08891d5b22d56f4c0b7dc437;p=qemu.git diff --git a/rules.mak b/rules.mak index 4673aada0..edc2552f0 100644 --- a/rules.mak +++ b/rules.mak @@ -21,19 +21,21 @@ QEMU_CFLAGS += -I$(/dev/null 2>&1 || cp $< $@ + +config-%.h-timestamp: config-%.mak + $(call quiet-command, sh $(SRC_PATH)/scripts/create_config < $< > $@, " GEN $(TARGET_DIR)config-$*.h") -%.h-timestamp: %.mak - $(call quiet-command, sh $(SRC_PATH)/scripts/create_config < $< > $@, " GEN $(TARGET_DIR)$*.h") - @cmp $@ $*.h >/dev/null 2>&1 || cp $@ $*.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: