[Ilugc] make command
- From: siva@xxxxxxxxxxx (Sivasankar Chander)
- Date: Fri Aug 13 10:34:58 2004
If I want to compile that directory after modifying
anything in any of the files I have make the whole
directory by giving 'make' command It will make the
You don't compile the directory. What you usually do
is to compile the source code which is located in a tree
rooted in that directory.
The process by which 'make' attempts to build the
source is controlled by a number of files. The one that
is most relevant to the source code that you're trying
to build will usually be in the same directory, and
You can modify the Makefile if you want to.
But I want a method so that It has to compile only the
modified and the executabel should use the
In most cases, the 'Makefile' will contain dependancies
to ensure that 'make' will do just that. It will only rebuild
those files that are dependent on changes you have made.
If all the files, including the final executable depend
on a single source file, then of course, all the files
will be rebuilt. All this is under control of the 'Makefile'.
Other related posts: