Jan Beulich
2005-Aug-22 07:52 UTC
[Xen-devel] [PATCH] allow clean build when sparse trees/patches not present
When building in a tree with (the sparse trees and) the patches stripped, a warning is issued by make, which the below patch eliminates. Signed-off-by: Jan Beulich <jbeulich@novell.com> diff -Npru /home/jbeulich/src/xen/2005-08-20/buildconfigs/Rules.mk 2005-08-20/buildconfigs/Rules.mk --- /home/jbeulich/src/xen/2005-08-20/buildconfigs/Rules.mk 2005-08-04 01:13:58.000000000 +0200 +++ 2005-08-20/buildconfigs/Rules.mk 2005-08-20 11:42:41.000000000 +0200 @@ -66,6 +66,7 @@ pristine-%/.valid-pristine: %.tar.bz2 PATCHDIRS := $(wildcard patches/*-*) +ifneq ($(PATCHDIRS),) -include $(patsubst %,%/.makedep,$(PATCHDIRS)) $(patsubst patches/%,patches/%/.makedep,$(PATCHDIRS)): patches/%/.makedep: @@ -80,6 +81,7 @@ ref-%/.valid-ref: pristine-%/.valid-pris ([ -d patches/$* ] && \ for i in patches/$*/*.patch ; do ( cd $(@D) ; patch -p1 <../$$i || exit 1 ) ; done) || true touch $@ # update timestamp to avoid rebuild +endif %-build: $(MAKE) -f buildconfigs/mk.$* build _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel