aboutsummaryrefslogtreecommitdiffstats
path: root/xen/include/Makefile
diff options
context:
space:
mode:
authorKeir Fraser <keir.fraser@citrix.com>2009-10-07 07:45:14 +0100
committerKeir Fraser <keir.fraser@citrix.com>2009-10-07 07:45:14 +0100
commitf00b33008950c400711c9ab1cd11337be04a4eb5 (patch)
tree7d319f4df3d3c6f334842f61324d780835be2fb7 /xen/include/Makefile
parentb6856c76a6287570ab74430e5445d6f1c1fbeeb8 (diff)
downloadxen-f00b33008950c400711c9ab1cd11337be04a4eb5.tar.gz
xen-f00b33008950c400711c9ab1cd11337be04a4eb5.tar.bz2
xen-f00b33008950c400711c9ab1cd11337be04a4eb5.zip
Slightly more accurate dependency tracking for the .c and .h files in
include/compat. They should depend on the scripts which generate them, as well as the inputs to those scripts. Signed-off-by: Steven Smith <steven.smith@citrix.com>
Diffstat (limited to 'xen/include/Makefile')
-rw-r--r--xen/include/Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/xen/include/Makefile b/xen/include/Makefile
index 0223835c08..8f9975ce31 100644
--- a/xen/include/Makefile
+++ b/xen/include/Makefile
@@ -44,7 +44,7 @@ public-$(CONFIG_IA64) := $(wildcard public/arch-ia64/*.h public/arch-ia64/*/*.h)
.PHONY: all
all: $(headers-y)
-compat/%.h: compat/%.i Makefile
+compat/%.h: compat/%.i Makefile $(BASEDIR)/tools/compat-build-header.py
set -e; id=_$$(echo $@ | tr '[:lower:]-/.' '[:upper:]___'); \
echo "#ifndef $$id" >$@.new; \
echo "#define $$id" >>$@.new; \
@@ -60,7 +60,7 @@ compat/%.h: compat/%.i Makefile
compat/%.i: compat/%.c Makefile
$(CPP) $(filter-out -M% .%.d,$(CFLAGS)) $(cppflags-y) -o $@ $<
-compat/%.c: public/%.h xlat.lst Makefile
+compat/%.c: public/%.h xlat.lst Makefile $(BASEDIR)/tools/compat-build-source.py
mkdir -p $(@D)
grep -v 'DEFINE_XEN_GUEST_HANDLE(long)' $< | \
$(PYTHON) $(BASEDIR)/tools/compat-build-source.py >$@.new