日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

GNU make manual 翻译( 一百七十五)

發布時間:2023/12/20 编程问答 34 豆豆
生活随笔 收集整理的這篇文章主要介紹了 GNU make manual 翻译( 一百七十五) 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

繼續翻譯

`.DEFAULT_GOAL' Sets the default goal to be used if no targets were specified onthe command line (*note Arguments to Specify the Goals: Goals.).The `.DEFAULT_GOAL' variable allows you to discover the currentdefault goal, restart the default goal selection algorithm byclearing its value, or to explicitly set the default goal. Thefollowing example illustrates these cases:# Query the default goal.ifeq ($(.DEFAULT_GOAL),)$(warning no default goal is set)endif.PHONY: foofoo: ; @echo $@$(warning default goal is $(.DEFAULT_GOAL))# Reset the default goal..DEFAULT_GOAL :=.PHONY: barbar: ; @echo $@$(warning default goal is $(.DEFAULT_GOAL))# Set our own..DEFAULT_GOAL := fooThis makefile prints:no default goal is setdefault goal is foodefault goal is barfooNote that assigning more than one target name to `.DEFAULT_GOAL' isillegal and will result in an error.

`.DEFAULT_GOAL'

設置如果在命令行中沒有制定目的場合,缺省的終點(*note Arguments to Specify the Goals :Goals)。

.DEFAULT_GOAL 變量允許你發現當前的缺省的終點,通過清除它的值來重新設置缺省的終點。下面的例子給出了如何操作:

# Query the default goal.
ifeq ($(.DEFAULT_GOAL),)
$(warning no default goal is set)
endif

.PHONY: foo
foo: ; @echo $@

$(warning default goal is $(.DEFAULT_GOAL))

# Reset the default goal.
.DEFAULT_GOAL :=

.PHONY: bar
bar: ; @echo $@

$(warning default goal is $(.DEFAULT_GOAL))

# Set our own.
.DEFAULT_GOAL := foo

這個 makefile 輸出:

no default goal is set
default goal is foo
default goal is bar
foo

請注意設置多余一個的目的名給`.DEFAULT_GOAL' 是無效的,會造成錯誤。

后文待續







本文轉自健哥的數據花園博客園博客,原文鏈接:http://www.cnblogs.com/gaojian/archive/2012/10/05/2712160.html,如需轉載請自行聯系原作者


總結

以上是生活随笔為你收集整理的GNU make manual 翻译( 一百七十五)的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。