# 使用 Homebrew, apk, MacPorts, Nix, zypper, dnf 安装 makedepend

查看 makedepend 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

## 安装

```sh
sudo av install brew:makedepend
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install makedepend
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install makedepend
```

  证据: MacPorts ports tree: x11/makedepend/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- apk (92%):

```sh
sudo apk add makedepend
```

  证据: Alpine Linux edge package indexes: makedepend from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz

- Nix (92%):

```sh
nix profile install nixpkgs#makedepend
```

  证据: nixpkgs package indexes: pkgs/by-name/ma/makedepend/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

- zypper (92%):

```sh
sudo zypper install makedepend
```

  证据: openSUSE Tumbleweed package metadata: makedepend from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst

- dnf (92%):

```sh
sudo dnf install imake
```

  证据: Fedora Rawhide package metadata: imake from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst

## 软件包事实

- **软件包键:** brew:makedepend
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/makedepend>
- **版本:** 1.0.9
- **来源摘要:** Creates dependencies in makefiles
- **主页:** <https://x.org/>
- **上游文档:** <https://x.org/>
- **许可证:** MIT
- **源码归档:** <https://xorg.freedesktop.org/releases/individual/util/makedepend-1.0.9.tar.xz>
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- makedepend (cli)
- makedepend (别名)

## 依赖

- util-macros
- xorgproto

## 构建依赖

- pkgconf

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 arm64_linux, arm64_monterey, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, monterey, sonoma, ventura, x86_64_linux

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 1.0.9
- 本地数据: OK
- 上游仓库: https://x.org/
- 信息: No package-manager update timestamp was available.
- 信息: Release/tag comparison is only available for GitHub repositories.
## 项目历史与用法

makedepend is an X.Org utility that parses C source files and writes include-file dependencies into makefiles so make knows which object files must be rebuilt.

### 项目历史

The upstream AUTHORS file credits Todd Brunhoff of Tektronix and MIT Project Athena as the original author, with Jim Fulton credited for the ifparser. The manpage carries Open Group copyright notices from 1993, 1994, and 1998, reflecting the tool's X11-era heritage.

The current X.Org repository keeps makedepend as a standalone utility module. Its GitLab project page describes it as a utility to parse C source files into dependency lists for Makefiles, and the repository tags show modern 1.0.x releases continuing through 1.0.9 in 2024.

### 采用历史

makedepend belongs to the older imake/X11 build world, where generated dependency blocks inside Makefiles were a normal way to keep C builds correct before compiler-native dependency flags became the common path.

Its continued packaging is mostly about compatibility and maintenance of older build systems. The upstream README points support and development through the X.Org mailing list and freedesktop.org GitLab, which fits its role as a small utility preserved inside the X.Org module set.

### 使用方式

makedepend reads each C source file, processes preprocessor directives such as makefile or Makefile unless another file is named with -f.

A typical makefile target runs makedepend with compiler flags and sources, using a marker line such as '# DO NOT DELETE THIS LINE -- make depend depends on it.' so the generated dependency section can be replaced on later runs.

### 为什么软件包爱好者会关心

makedepend is a museum piece that still works: it shows how C dependency generation was bolted onto makefiles before today's compiler -M style flags and higher-level build systems took over.

For maintainers, it is significant because old X.Org, imake, and C packages may still call makedepend directly. Having it packaged separately keeps those builds reproducible without dragging in a larger historical X11 toolchain.

### 时间线

- 1993: Manpage copyright begins with The Open Group.
- 2002: Manpage date records a December 14, 2002 manual revision.
- 2007: X.Org GitLab tags include makedepend 1.0.1.
- 2024: X.Org GitLab tags include makedepend 1.0.9.

### Related projects

- X.Org util modules are the current upstream home.
- imake-era X11 builds are the historical ecosystem around makedepend.
- GNU Make and POSIX make consume the dependency lines makedepend writes.

### 来源

- <https://gitlab.freedesktop.org/api/v4/projects/xorg%2Futil%2Fmakedepend/repository/tags?per_page=20>
- <https://gitlab.freedesktop.org/xorg/util/makedepend>
- <https://gitlab.freedesktop.org/xorg/util/makedepend/-/raw/master/AUTHORS>
- <https://gitlab.freedesktop.org/xorg/util/makedepend/-/raw/master/README.md>
- <https://gitlab.freedesktop.org/xorg/util/makedepend/-/raw/master/makedepend.man>


## 安全说明

narrow executable package without higher-risk signals.

- **Geiger 风险:** 绿色 / 低
- narrow executable package without higher-risk signals

## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** makedepend
- **Version Scheme:** 0
- **Revision:** 0
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** stable

## 其他软件包管理器记录

- Nix - makedepend: normalized package name match | nixpkgs package indexes: pkgs/by-name/ma/makedepend/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- apk - makedepend - 1.0.9-r0: normalized package name match | Alpine Linux edge package indexes: makedepend from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | utility for making makefile dependencies | https://www.freedesktop.org/
- apk - makedepend-doc - 1.0.9-r0: normalized package name match | Alpine Linux edge package indexes: makedepend-doc from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | utility for making makefile dependencies (documentation) | https://www.freedesktop.org/
- dnf - imake - 1.0.10-9.fc45: normalized package name match | Fedora Rawhide package metadata: imake from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst | imake source code configuration and build system | http://www.x.org
- zypper - makedepend - 1.0.9-1.8: normalized package name match | openSUSE Tumbleweed package metadata: makedepend from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Utility to create dependencies in makefiles | https://xorg.freedesktop.org/
- MacPorts - makedepend: normalized package name match | MacPorts ports tree: x11/makedepend/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## 相关链接

- [Terminal utility packages](https://pkg.so/zh-hans/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://pkg.so/zh-hans/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Developer build packages](https://pkg.so/zh-hans/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [Networking and protocol packages](https://pkg.so/zh-hans/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [pkgconf](https://pkg.so/zh-hans/brew/pkgconf/) - Build dependency declared by Homebrew.
- [mk-configure](https://pkg.so/zh-hans/brew/mk-configure/) - Popular package that depends on this formula.
- [make](https://pkg.so/zh-hans/brew/make/) - Shares pkgdb curated category or tags: build, cli, developer-tools, makefiles.
- [makefile2graph](https://pkg.so/zh-hans/brew/makefile2graph/) - Shares pkgdb curated category or tags: build, cli, developer-tools, makefiles.
- [docker-buildx](https://pkg.so/zh-hans/brew/docker-buildx/) - Shares pkgdb curated category or tags: build, cli, developer-tools.
- [glib](https://pkg.so/zh-hans/brew/glib/) - Shares pkgdb curated category or tags: c, cli, developer-tools.
- [libdeflate](https://pkg.so/zh-hans/brew/libdeflate/) - Shares pkgdb curated category or tags: c, cli, developer-tools.
- [hello](https://pkg.so/zh-hans/brew/hello/) - Shares pkgdb curated category or tags: c, cli, developer-tools.
- [libdatrie](https://pkg.so/zh-hans/brew/libdatrie/) - Shares pkgdb curated category or tags: c, cli, developer-tools.
- [ccache](https://pkg.so/zh-hans/brew/ccache/) - Shares pkgdb curated category or tags: c, cli, developer-tools.
- [clib](https://pkg.so/zh-hans/brew/clib/) - Local metadata places this package in an adjacent workflow. Shared terms: build, c, cli, dependency, developer.

## Combined YAML source

View the package source record on GitHub. [combined/makedepend.yml](https://github.com/mxcl/pkgdb/blob/main/combined/makedepend.yml)


## 来源

- pkg.so package database
- Geiger risk classifier
- package-page enrichment
- curated package history
- package version freshness
- pkgdb category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
