瀏覽代碼

don't run the image prereq check if the image directory does not exist

SVN-Revision: 7988
Felix Fietkau 18 年之前
父節點
當前提交
5f9838d5f9
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      target/Makefile

+ 1 - 1
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