makefile 引數說明

2021-06-27 14:52:17 字數 602 閱讀 5607

-k引數

如果某個目標出錯,依賴這個目標的規則都不執行,其它規則執行。

例:還是這個makefile檔案:

r1 : r2 r3

echo 1

r2 : r21

echo 2

cat ew         #ew檔案不存在,故意讓這條指定出錯

r21 :

echo 21

r3 : r31

echo 3

r31 :

echo 31

執行命令make -k,有如下輸出:

root@lifengwei-desktop:~/documents/mksub# make -k

echo 21

21echo 2

2cat ew

cat: ew: no such file or directory

make: *** [r2] error 1

echo 31

31echo 3

3make: target `r1' not remade because of errors.

生成順序:r21->r2(出錯) ->r31->r3

Makefile 常用函式說明

function arguments 譯作 函式名 引數列表 makefile字串函式 1.subst 說明 字元替換函式,將字串text中的from字元,完全替換成to。語法 subst from,to,text 示例 subst from ee,ee,feet on the street 結果 ...

Cache control引數說明

header中的cache control引數說明 php編碼 網頁的快取是由http訊息頭中的 cache control 來控制的,常見的取值有private no cache max age must revalidate等,預設為private。其作用根據不同的重新瀏覽方式分為以下幾種情況 ...

nmap引數說明

目標規範 可以通過主機名,ip位址,網路等 例 scanme.nmap.org,dream4.org 24,192.168.0.1 10.0.0 255.1 254 il 從指定檔案獲取主機或網路 ir 隨機選擇主機,0 不限制掃瞄主機數 exclude 排除指定主機或網路 excludefile ...