HanSooloo
HanSooloo

Reputation: 763

How does one find the targets that a particular Makefile exposes

Many a time, I would do the standard ./configure, make, and make install when compiling a package.

However, there are times when I see a package being built with optional make parameters that are specific to that package.

Is there a easy way to list the bundled targets other than going through the Makefile source?

Upvotes: 0

Views: 18

Answers (1)

Etan Reisner
Etan Reisner

Reputation: 80921

As a general statement, no.

If there are meaningful variables the project should call them out specifically.

The bash (and probably zsh) tab completion support does attempt to get available make targets (with varying degrees of success) if that is of help though.

Upvotes: 2

Related Questions