makefile和script - Linux

By Lucy
at 2013-12-25T23:24
at 2013-12-25T23:24
Table of Contents
目前的任務要Build code,參照網路上的一大串指令步驟
我第一個念頭就是把這些指令步驟直接複製到makefile裡,想用make直接讓他跑指令,
後來當然是無法make,強者同事說用makefile寫,目前是這樣的,我的進度是
makefile會一點,script語法會一點,但我整個就是搞不清楚啥時候用makefile
啥時用script,看了同事他們的makefile,裡面會呼叫.sh也就是script來跑
我也不懂為何不能直接把這些一大串指令直接複製到makefile裡讓他跑。
比如
XXX:
export your_path=/aqc/fdf/gdf
cd ${your_path}/XXX/XXOO
make arch=XXXX
.
.
然後在擁有makefile的工作目錄下執行make XXX,卻出許多錯
makefile和script一直很混亂
--
我第一個念頭就是把這些指令步驟直接複製到makefile裡,想用make直接讓他跑指令,
後來當然是無法make,強者同事說用makefile寫,目前是這樣的,我的進度是
makefile會一點,script語法會一點,但我整個就是搞不清楚啥時候用makefile
啥時用script,看了同事他們的makefile,裡面會呼叫.sh也就是script來跑
我也不懂為何不能直接把這些一大串指令直接複製到makefile裡讓他跑。
比如
XXX:
export your_path=/aqc/fdf/gdf
cd ${your_path}/XXX/XXOO
make arch=XXXX
.
.
然後在擁有makefile的工作目錄下執行make XXX,卻出許多錯
makefile和script一直很混亂
--
Tags:
Linux
All Comments

By Agatha
at 2013-12-28T00:19
at 2013-12-28T00:19
Related Posts
HackingThursday 固定聚會 (2013-12-26)

By Jacob
at 2013-12-23T12:12
at 2013-12-23T12:12
自定變數與環境變數

By Tracy
at 2013-12-22T20:40
at 2013-12-22T20:40
自定變數與環境變數

By Irma
at 2013-12-22T20:02
at 2013-12-22T20:02
ibus-table 倉頡故障求 db 編輯法

By Rebecca
at 2013-12-22T12:04
at 2013-12-22T12:04
關於makefile..

By Lydia
at 2013-12-22T10:27
at 2013-12-22T10:27