# phony 說明 phony 詞彙的相關意思與實務中的使用方式 <https://hackmd.io/@hacktionary/term-phony> ## 內容大綱 [TOC] ## <ruby>形容詞<rp>(</rp><rt>Adjective</rt><rp>)</rp></ruby> ### 虛假的 #### 例句 > We can create yet another **phony** target called "distcheck" that does exactly what our users will do--unpack the tarball, and build the project. > 我們可以再建立另一個叫做 distcheck 的**虛假** Make 目標以進行確切我們的使用者會做的事情——解開 tar 封存檔並建構專案。 > ——摘錄自 [Automatically testing a distribution | Chapter 2: Project management and the GNU coding standards](http://freesoftwaremagazine.com/articles/gnu_coding_standards_applied_to_autotools/) [OpenAI 平台(gpt-4-turbo)參考翻譯與詞彙在情境中的說明](https://platform.openai.com/playground/p/5cTvrp2BKu6BuJzXwsm1ytWw?mode=chat): > 我們可以再創建一個名為「distcheck」的**虛假**目標,這個目標會完全模擬我們的使用者的行為—解開tarball並構建專案。 > > 在這段話中,「虛假」(phony)是一個專有名詞,指的是在 Makefile 中,即使檔案不存在或沒有更新,也會強制執行其指令的目標。在程式開發和編譯環境中,這樣的設置可以保護目標不因依賴關係的變更而被誤觸或遺漏執行,確保特定的建置或檢查步驟被定期重複進行,而無需實際產生或更新對應的文件。這對於自動化測試和確保專案一致性尤其重要。 Google Gemini(2.0 Flash) 參考翻譯與詞彙在情境中的說明: > 我們可以再創建一個**虛假的**目標,名為 "distcheck",它會完全模擬我們的使用者所做的——解壓縮 tarball,然後建構專案。 > > *Meaning of "phony" in the source passage:** > > In this context, "phony" signifies that the "distcheck" target is not a genuine, essential part of the project's build process. Instead, it's an artificial, simulated target created specifically for testing and validation purposes. It's designed to mimic the actions of users who would download and build the software from a distribution archive (tarball). Essentially, it's a "pretend" or "fake" target created for quality assurance. --- 本文件為[《Hacktionary》專案](https://hackmd.io/@hacktionary/home)的衍生作品,以[《Creative Commons 姓名標示-相同方式分享》授權條款第 4.0 國際版](https://creativecommons.org/licenses/by-sa/4.0/deed.zh_TW)或其任意更近期版本釋出供大眾於授權範圍內自由使用 如參與本平台的內容實作視同為將您的內容以相同授權條款釋出 部份內容為基於合理使用(fair use)原則使用,使用方式請參閱其註明之來源與作者 <style> /* 調大旁註文字的字元大小 */ rt{ font-size: 10pt; } </style>