X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=rules.mak;h=edc2552f0886c99608b97f85bd932460fa50da73;hb=refs%2Fheads%2Fbackup2;hp=6d82c0d5a0a7332c076154b42678e96222c8d7b4;hpb=8e9a8681dd6066e4f79ba85b59deedb4d3d11aa2;p=qemu.git diff --git a/rules.mak b/rules.mak index 6d82c0d5a..edc2552f0 100644 --- a/rules.mak +++ b/rules.mak @@ -82,12 +82,16 @@ TRACETOOL=$(PYTHON) $(SRC_PATH)/scripts/tracetool.py # Generate timestamp files for .h include files -%.h: %.h-timestamp - @test -f $@ || cp $< $@ +config-%.h: config-%.h-timestamp + @cmp $< $@ >/dev/null 2>&1 || cp $< $@ -%.h-timestamp: %.mak - $(call quiet-command, sh $(SRC_PATH)/scripts/create_config < $< > $@, " GEN $(TARGET_DIR)$*.h") - @cmp $@ $*.h >/dev/null 2>&1 || cp $@ $*.h +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: