[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] Many files:
ChangeSet 1.1851.1.1, 2005/05/12 19:58:55+01:00, cl349@xxxxxxxxxxxxxxxxxxxx Many files: Use marker files instead of depending on the change times of directories. ignore: Add patches/*/.makedep. Cleanup ignore list. Signed-off-by: Christian Limpach <Christian.Limpach@xxxxxxxxxxxx> Makefile | 4 --- buildconfigs/Rules.mk | 41 ++++++++++++++++++++++++---------------- buildconfigs/mk.linux-2.4-xen0 | 6 ++--- buildconfigs/mk.linux-2.4-xenU | 6 ++--- buildconfigs/mk.linux-2.6-xen0 | 6 ++--- buildconfigs/mk.linux-2.6-xenU | 6 ++--- buildconfigs/mk.netbsd-2.0-xenU | 6 ++--- 7 files changed, 41 insertions(+), 34 deletions(-) diff -Nru a/Makefile b/Makefile --- a/Makefile 2005-05-12 19:05:59 -04:00 +++ b/Makefile 2005-05-12 19:05:59 -04:00 @@ -15,8 +15,6 @@ # linux-2.4-xen0 linux-2.4-xenU netbsd-2.0-xenU # You may use wildcards in the above e.g. KERNELS=*2.4* -ALLKERNELS = $(patsubst buildconfigs/mk.%,%,$(wildcard buildconfigs/mk.*)) -ALLSPARSETREES = $(patsubst %-xen-sparse,%,$(wildcard *-xen-sparse)) XKERNELS := $(foreach kernel, $(KERNELS), $(patsubst buildconfigs/mk.%,%,$(wildcard buildconfigs/mk.$(kernel))) ) export DESTDIR @@ -86,7 +84,7 @@ $(MAKE) dist # clean doesn't do a kclean -clean: +clean:: $(MAKE) -C xen clean $(MAKE) -C tools clean $(MAKE) -C docs clean diff -Nru a/buildconfigs/Rules.mk b/buildconfigs/Rules.mk --- a/buildconfigs/Rules.mk 2005-05-12 19:05:59 -04:00 +++ b/buildconfigs/Rules.mk 2005-05-12 19:05:59 -04:00 @@ -4,6 +4,9 @@ DISTDIR ?= $(CURDIR)/dist DESTDIR ?= $(DISTDIR)/install +ALLKERNELS = $(patsubst buildconfigs/mk.%,%,$(wildcard buildconfigs/mk.*)) +ALLSPARSETREES = $(patsubst %-xen-sparse,%,$(wildcard *-xen-sparse)) + .PHONY: mkpatches mrproper # Setup pristine search path @@ -47,23 +50,29 @@ OS_VER = $(NETBSD_VER) endif -pristine-%: %.tar.bz2 - rm -rf tmp-$(@F) $@ - mkdir -p tmp-$(@F) - tar -C tmp-$(@F) -jxf $< - mv tmp-$(@F)/* $@ +$(patsubst %,pristine-%/.valid-pristine,$(ALLSPARSETREES)) : pristine-%/.valid-pristine: %.tar.bz2 + rm -rf tmp-pristine-$* $(@D) + mkdir -p tmp-pristine-$* + tar -C tmp-pristine-$* -jxf $< + mv tmp-pristine-$*/* $(@D) + @rm -rf tmp-pristine-$* touch $@ # update timestamp to avoid rebuild - @rm -rf tmp-$(@F) -OS_PATCHES = $(shell echo patches/$(OS)-$(OS_VER)/*.patch) +PATCHDIRS := $(wildcard patches/*-*) + +-include $(patsubst %,%/.makedep,$(PATCHDIRS)) + +$(patsubst patches/%,patches/%/.makedep,$(PATCHDIRS)): patches/%/.makedep: + @echo 'ref-$*/.valid-ref: $$(wildcard patches/$*/*.patch)' >$@ + +clean:: + rm -f patches/*/.makedep -ref-%: pristine-% $(OS_PATCHES) - rm -rf $@ - cp -al $< tmp-$(@F) +ref-%/.valid-ref: pristine-%/.valid-pristine + rm -rf $(@D) + cp -al $(<D) $(@D) [ -d patches/$* ] && \ - for i in patches/$*/*.patch ; do ( cd tmp-$(@F) ; patch -p1 <../$$i ) ; done || \ - true - mv tmp-$(@F) $@ + for i in patches/$*/*.patch ; do ( cd $(@D) ; patch -p1 <../$$i || exit 1 ) ; done touch $@ # update timestamp to avoid rebuild %-build: @@ -75,11 +84,11 @@ %-clean: $(MAKE) -f buildconfigs/mk.$* clean -%-xen.patch: ref-% +%-xen.patch: ref-%/.valid-ref rm -rf tmp-$@ - cp -al $< tmp-$@ + cp -al $(<D) tmp-$@ ( cd $*-xen-sparse && ./mkbuildtree ../tmp-$@ ) - diff -Nurp $< tmp-$@ > $@ || true + diff -Nurp $(<D) tmp-$@ > $@ || true rm -rf tmp-$@ %-mrproper: %-mrproper-extra diff -Nru a/buildconfigs/mk.linux-2.4-xen0 b/buildconfigs/mk.linux-2.4-xen0 --- a/buildconfigs/mk.linux-2.4-xen0 2005-05-12 19:05:59 -04:00 +++ b/buildconfigs/mk.linux-2.4-xen0 2005-05-12 19:05:59 -04:00 @@ -24,9 +24,9 @@ wget http://www.cl.cam.ac.uk/netos/xen/downloads/ebtables-brnf-5_vs_2.4.27.diff.gz -O- | gunzip -c > $@ $(LINUX_DIR)/include/linux/autoconf.h: patches/tmp/ebtables.diff -$(LINUX_DIR)/include/linux/autoconf.h: ref-$(OS)-$(LINUX_VER) +$(LINUX_DIR)/include/linux/autoconf.h: ref-$(OS)-$(LINUX_VER)/.valid-ref rm -rf $(LINUX_DIR) - cp -al $< $(LINUX_DIR) + cp -al $(<D) $(LINUX_DIR) # Apply arch-xen patches ( cd linux-$(LINUX_VER)-xen-sparse ; \ ./mkbuildtree ../$(LINUX_DIR) ) @@ -45,7 +45,7 @@ make -C $(LINUX_DIR) ARCH=xen oldconfig make -C $(LINUX_DIR) ARCH=xen dep -clean: +clean:: $(MAKE) -C $(LINUX_DIR) ARCH=xen clean delete: diff -Nru a/buildconfigs/mk.linux-2.4-xenU b/buildconfigs/mk.linux-2.4-xenU --- a/buildconfigs/mk.linux-2.4-xenU 2005-05-12 19:05:59 -04:00 +++ b/buildconfigs/mk.linux-2.4-xenU 2005-05-12 19:05:59 -04:00 @@ -19,9 +19,9 @@ fi $(MAKE) -C $(LINUX_DIR) ARCH=xen INSTALL_PATH=$(DESTDIR) install -$(LINUX_DIR)/include/linux/autoconf.h: ref-linux-$(LINUX_VER) +$(LINUX_DIR)/include/linux/autoconf.h: ref-linux-$(LINUX_VER)/.valid-ref rm -rf $(LINUX_DIR) - cp -al $< $(LINUX_DIR) + cp -al $(<D) $(LINUX_DIR) # Apply arch-xen patches ( cd linux-$(LINUX_VER)-xen-sparse ; \ ./mkbuildtree ../$(LINUX_DIR) ) @@ -38,7 +38,7 @@ make -C $(LINUX_DIR) ARCH=xen oldconfig make -C $(LINUX_DIR) ARCH=xen dep -clean: +clean:: $(MAKE) -C $(LINUX_DIR) ARCH=xen clean delete: diff -Nru a/buildconfigs/mk.linux-2.6-xen0 b/buildconfigs/mk.linux-2.6-xen0 --- a/buildconfigs/mk.linux-2.6-xen0 2005-05-12 19:05:59 -04:00 +++ b/buildconfigs/mk.linux-2.6-xen0 2005-05-12 19:05:59 -04:00 @@ -19,9 +19,9 @@ fi $(MAKE) -C $(LINUX_DIR) ARCH=xen INSTALL_PATH=$(DESTDIR) install -$(LINUX_DIR)/include/linux/autoconf.h: ref-$(OS)-$(LINUX_VER) +$(LINUX_DIR)/include/linux/autoconf.h: ref-$(OS)-$(LINUX_VER)/.valid-ref rm -rf $(LINUX_DIR) - cp -al $< $(LINUX_DIR) + cp -al $(<D) $(LINUX_DIR) # Apply arch-xen patches ( cd linux-$(LINUX_VER)-xen-sparse ; \ ./mkbuildtree ../$(LINUX_DIR) ) @@ -37,7 +37,7 @@ $(LINUX_DIR)/.config $(MAKE) -C $(LINUX_DIR) ARCH=xen oldconfig -clean: +clean:: $(MAKE) -C $(LINUX_DIR) ARCH=xen clean delete: diff -Nru a/buildconfigs/mk.linux-2.6-xenU b/buildconfigs/mk.linux-2.6-xenU --- a/buildconfigs/mk.linux-2.6-xenU 2005-05-12 19:05:59 -04:00 +++ b/buildconfigs/mk.linux-2.6-xenU 2005-05-12 19:05:59 -04:00 @@ -19,9 +19,9 @@ fi $(MAKE) -C $(LINUX_DIR) ARCH=xen INSTALL_PATH=$(DESTDIR) install -$(LINUX_DIR)/include/linux/autoconf.h: ref-$(OS)-$(LINUX_VER) +$(LINUX_DIR)/include/linux/autoconf.h: ref-$(OS)-$(LINUX_VER)/.valid-ref rm -rf $(LINUX_DIR) - cp -al $< $(LINUX_DIR) + cp -al $(<D) $(LINUX_DIR) # Apply arch-xen patches ( cd linux-$(LINUX_VER)-xen-sparse ; \ ./mkbuildtree ../$(LINUX_DIR) ) @@ -37,7 +37,7 @@ $(LINUX_DIR)/.config $(MAKE) -C $(LINUX_DIR) ARCH=xen oldconfig -clean: +clean:: $(MAKE) -C $(LINUX_DIR) ARCH=xen clean delete: diff -Nru a/buildconfigs/mk.netbsd-2.0-xenU b/buildconfigs/mk.netbsd-2.0-xenU --- a/buildconfigs/mk.netbsd-2.0-xenU 2005-05-12 19:05:59 -04:00 +++ b/buildconfigs/mk.netbsd-2.0-xenU 2005-05-12 19:05:59 -04:00 @@ -24,9 +24,9 @@ tar -jxf $< touch $@ # update timestamp to avoid rebuild -$(NETBSD_DIR)/.valid: ref-$(OS)-$(NETBSD_VER) +$(NETBSD_DIR)/.valid: ref-$(OS)-$(NETBSD_VER)/.valid-ref $(RM) -rf $(NETBSD_DIR) - cp -al $< $(NETBSD_DIR) + cp -al $(<D) $(NETBSD_DIR) # Apply arch-xen patches ( cd netbsd-$(NETBSD_VER)-xen-sparse ; \ ./mkbuildtree ../$(NETBSD_DIR) ) @@ -38,7 +38,7 @@ $(MAKE) -C netbsd-$(FULLVERSION) netbsd $(MAKE) -C netbsd-$(FULLVERSION) INSTALL_PATH=$(DESTDIR) INSTALL_NAME=boot/netbsd-$(NETBSD_VER)-xen$* install -clean: +clean:: $(MAKE) -C netbsd-$(FULLVERSION) clean delete: _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |