From 5f9838d5f9602dd4dfef9baaeb3912c5121f9acc Mon Sep 17 00:00:00 2001
From: Felix Fietkau <nbd@openwrt.org>
Date: Mon, 16 Jul 2007 00:42:19 +0000
Subject: [PATCH] don't run the image prereq check if the image directory does
 not exist

SVN-Revision: 7988
---
 target/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/target/Makefile b/target/Makefile
index a3b15b2659..4885ab98d3 100644
--- a/target/Makefile
+++ b/target/Makefile
@@ -33,7 +33,7 @@ clean: linux-clean sdk-clean imagebuilder-clean image_clean
 
 prereq: FORCE
 	$(MAKE) -C linux/$(BOARD)-$(KERNEL) prereq
-	$(MAKE) -C $(IMAGE_DIR) prereq
+	[ \! -f $(IMAGE_DIR)/Makefile ] || $(MAKE) -C $(IMAGE_DIR) prereq
 
 sdk_install: FORCE
 	$(MAKE) -C sdk install
-- 
GitLab