> For the complete documentation index, see [llms.txt](https://porters-handbook.bsdcn.org/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://porters-handbook.bsdcn.org/di-5-zhang-pei-zhi-makefile.md).

# 第 5 章 配置 Makefile

- [5.1.原始来源](https://porters-handbook.bsdcn.org/di-5-zhang-pei-zhi-makefile/5.1.-zuo-zhe-fa-bu-de-dai-ma.md)
- [5.2.命名](https://porters-handbook.bsdcn.org/di-5-zhang-pei-zhi-makefile/5.2.-ming-ming.md)
- [5.3.归类](https://porters-handbook.bsdcn.org/di-5-zhang-pei-zhi-makefile/5.3.-gui-lei.md)
- [5.4.源代码包文件](https://porters-handbook.bsdcn.org/di-5-zhang-pei-zhi-makefile/5.4.-yuan-dai-ma-bao-wen-jian.md)
- [5.5.维护者（MAINTAINER）](https://porters-handbook.bsdcn.org/di-5-zhang-pei-zhi-makefile/5.5.-wei-hu-zhe-maintainer.md)
- [5.6.一句话说明（COMMENT）](https://porters-handbook.bsdcn.org/di-5-zhang-pei-zhi-makefile/5.6.-yi-ju-hua-shuo-ming-comment.md)
- [5.7.项目网站](https://porters-handbook.bsdcn.org/di-5-zhang-pei-zhi-makefile/5.7.-xiang-mu-wang-zhan.md)
- [5.8.许可证](https://porters-handbook.bsdcn.org/di-5-zhang-pei-zhi-makefile/5.8.-xu-ke-zheng.md)
- [5.9.PORTSCOUT](https://porters-handbook.bsdcn.org/di-5-zhang-pei-zhi-makefile/5.9.portscout.md)
- [5.10.依赖](https://porters-handbook.bsdcn.org/di-5-zhang-pei-zhi-makefile/5.10.-yi-lai.md)
- [5.11.从属 Port 和 MASTERDIR](https://porters-handbook.bsdcn.org/di-5-zhang-pei-zhi-makefile/5.11.-cong-shu-port-he-masterdir.md)
- [5.12.man 手册](https://porters-handbook.bsdcn.org/di-5-zhang-pei-zhi-makefile/5.12.man-shou-ce.md)
- [5.13.info 文件](https://porters-handbook.bsdcn.org/di-5-zhang-pei-zhi-makefile/5.13.info-wen-jian.md)
- [5.14.Makefile 参数](https://porters-handbook.bsdcn.org/di-5-zhang-pei-zhi-makefile/5.14.makefile-can-shu.md)
- [5.15.特殊的工作目录](https://porters-handbook.bsdcn.org/di-5-zhang-pei-zhi-makefile/5.15.-te-shu-de-gong-zuo-mu-lu.md)
- [5.16.解决冲突](https://porters-handbook.bsdcn.org/di-5-zhang-pei-zhi-makefile/5.16.-jie-jue-chong-tu.md)
- [5.17.安装文件](https://porters-handbook.bsdcn.org/di-5-zhang-pei-zhi-makefile/5.17.-an-zhuang-wen-jian.md)
- [5.18. 使用 BINARY\_ALIAS 来重命名命令，而不是在编译中打补丁](https://porters-handbook.bsdcn.org/di-5-zhang-pei-zhi-makefile/5.18.-shi-yong-binaryalias-lai-zhong-ming-ming-ming-ling-er-bu-shi-zai-bian-yi-zhong-da-bu-ding.md)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://porters-handbook.bsdcn.org/di-5-zhang-pei-zhi-makefile.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
