Chau Chee Yang
Chau Chee Yang

Reputation: 19640

What is the different between "Make" and "Build" in context menu of project build configuration?

When I pop up context menu of a Delphi project's build configuration, I see menu items of "Make", "Build" and "Clean".

What is the different between "Make" and "Build"? It seems that both perform same task.

Upvotes: 15

Views: 21194

Answers (3)

Christian Gingras
Christian Gingras

Reputation: 71

I would add a related information : what "Clean" do compared to "Build" and "Make". It appears to delete the "pre-compiled header" database.

Upvotes: 2

David Heffernan
David Heffernan

Reputation: 613312

  • Build compiles all source files in the project.
  • Make compiles those that have changed since the last make or build.

Note that make is actually a little more complex. A unit, let us say unitA, can require re-compilation during a make even if unitA has not changed. This happens when unitA uses another unit, unitB, and the interface section of unitB has changed since the last make or build.

The documentation for Build states:

Rebuilds all files in your current project regardless of whether they have changed. Building is useful when you are unsure which files have changed, or if you have changed project or compiler options.

The documentation for Make states:

Compiles only those files that have changed since the last build, as well as any files that depend on them.

Upvotes: 31

Make compiles outdated modules (the ones that were changed since the last project compilation), while build (re)compiles all modules.

Upvotes: 12

Related Questions