When building in a tree with (the sparse trees and) the patches
authorkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>
Mon, 22 Aug 2005 08:36:21 +0000 (08:36 +0000)
committerkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>
Mon, 22 Aug 2005 08:36:21 +0000 (08:36 +0000)
stripped, a warning is issued by make, which the below patch
eliminates.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
buildconfigs/Rules.mk

index f259822b5f818db8800d44368b1efbdfb7f064a3..615a21085c76e0508d59ea6000c36ba36182b1e0 100644 (file)
@@ -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-pristine
        ([ -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