# 使用 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/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst

## 软件包事实

- **软件包键:** brew:makedepend
- **软件包管理器:** Homebrew
- **版本:** 1.0.9
- **来源摘要:** Creates dependencies in makefiles
- **主页:** <https://x.org/>
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- makedepend (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 1.0.9
## 项目历史与用法

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

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

- 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/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-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


## 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
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
