# HG changeset patch # User kaf24@scramble.cl.cam.ac.uk # Date 1108565300 0 # Node ID 2ba0cb1921de8e60f66097d37a449125db8926c5 # Parent 8f257979f5c7a0f679987e4ab17e869bc8fbe8d2 bitkeeper revision 1.1210 (42135d344yR5vSwI1O6BZ3rfVvGIJg) Don't depend on auto-generated header asm-offsets.h. Signed-off-by: keir.fraser@cl.cam.ac.uk diff -r 8f257979f5c7 -r 2ba0cb1921de xen/Makefile --- a/xen/Makefile Wed Feb 16 13:13:29 2005 +0000 +++ b/xen/Makefile Wed Feb 16 14:48:20 2005 +0000 @@ -99,8 +99,7 @@ include/asm-$(TARGET_ARCH)/asm-offsets.h echo ""; \ sed -ne "/^->/{s:^->\([^ ]*\) [\$$#]*\([^ ]*\) \(.*\):#define \1 \2 /* \3 */:; s:->::; p;}"; \ echo ""; \ - echo "#endif") <$< >$@.tmp - @if cmp -s $@.tmp $@; then rm $@.tmp; else rm $@; mv $@.tmp $@; fi + echo "#endif") <$< >$@ .PHONY: default debug install dist clean delete-unfresh-files TAGS diff -r 8f257979f5c7 -r 2ba0cb1921de xen/Rules.mk --- a/xen/Rules.mk Wed Feb 16 13:13:29 2005 +0000 +++ b/xen/Rules.mk Wed Feb 16 14:48:20 2005 +0000 @@ -21,7 +21,8 @@ HDRS := $(wildcard $(BASEDIR)/include HDRS += $(wildcard $(BASEDIR)/include/public/*.h) HDRS += $(wildcard $(BASEDIR)/include/asm-$(TARGET_ARCH)/*.h) HDRS += $(wildcard $(BASEDIR)/include/asm-$(TARGET_ARCH)/$(TARGET_SUBARCH)/*.h) -# compile.h is always regenerated, but other files shouldn't be rebuilt +# Do not depend on auto-generated header files. +HDRS := $(subst $(BASEDIR)/include/asm-$(TARGET_ARCH)/asm-offsets.h,,$(HDRS)) HDRS := $(subst $(BASEDIR)/include/xen/banner.h,,$(HDRS)) HDRS := $(subst $(BASEDIR)/include/xen/compile.h,,$(HDRS))