diff options
author | Juan Quintela <quintela@redhat.com> | 2009-10-07 02:40:58 +0200 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2009-10-08 21:17:03 -0500 |
commit | 1215c6e7615897e4a0bfd6867b762a47fc34f37f (patch) | |
tree | d1a89ac56768083704a24a6f03ec8de1534cf2a3 /rules.mak | |
parent | deed3ccfca6bbebeab4f1c6874cb9c2902956328 (diff) | |
download | qemu-1215c6e7615897e4a0bfd6867b762a47fc34f37f.zip qemu-1215c6e7615897e4a0bfd6867b762a47fc34f37f.tar.gz qemu-1215c6e7615897e4a0bfd6867b762a47fc34f37f.tar.bz2 |
Move generation of config-host.h to Makefile from configure
Use timestamp based appreach to avoid not needed recompilation.
Add it to rules.mak
Many thanks to Paolo Bonzini for helpding the design, and the debug.
Patchworks-ID: 35190
Signed-off-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'rules.mak')
-rw-r--r-- | rules.mak | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -35,3 +35,12 @@ quiet-command = $(if $(V),$1,$(if $(2),@echo $2 && $1, @$1)) cc-option = $(if $(shell $(CC) $1 $2 -S -o /dev/null -xc /dev/null \ >/dev/null 2>&1 && echo OK), $2, $3) + +# Generate timestamp files for .h include files + +%.h: %.h-timestamp + @test -f $@ || cp $< $@ + +%.h-timestamp: %.mak + $(call quiet-command, $(SRC_PATH)/create_config < $< > $@, " GEN $*.h") + @cmp $@ $*.h >/dev/null 2>&1 || cp $@ $*.h |