瀏覽代碼

Makefile: Auto-update submodules.

Paul Sokolovsky 10 年之前
父節點
當前提交
c3c96ee0d0
共有 1 個文件被更改,包括 5 次插入1 次删除
  1. 5 1
      Makefile

+ 5 - 1
Makefile

@@ -48,7 +48,7 @@ toolchain:
 	sed -r -i s%CT_INSTALL_DIR_RO=y%"#"CT_INSTALL_DIR_RO=y% .config
 	sed -r -i s%CT_INSTALL_DIR_RO=y%"#"CT_INSTALL_DIR_RO=y% .config
 	./ct-ng build
 	./ct-ng build
 
 
-crosstool-NG/ct-ng:
+crosstool-NG/ct-ng: crosstool-NG/bootstrap
 	make -C crosstool-NG -f ../Makefile ct-ng
 	make -C crosstool-NG -f ../Makefile ct-ng
 
 
 ct-ng:
 ct-ng:
@@ -56,3 +56,7 @@ ct-ng:
 	./configure --prefix=`pwd`
 	./configure --prefix=`pwd`
 	make MAKELEVEL=0
 	make MAKELEVEL=0
 	make install MAKELEVEL=0
 	make install MAKELEVEL=0
+
+crosstool-NG/bootstrap:
+	@echo "You cloned without --recursive, fetching submodules for you."
+	git submodule update --init --recursive