i think the prob is in ".PHONY " .This is what O'Reilly's Introduction to make
If a phony target is included as a prerequisite for >another target, it will
be run every time that other >target is required. Phony targets are never
I have a project directory structure like this
The Makefile under the top directory "dependent" is like this
----Makefile starts here---
.PHONY: independent clean
dependent: dependent.c independent
gcc -o dependent dependent.c
cd independent && $(MAKE)
----Makefile ends here---
The problem is,
For the module("named independent") sources that are up to date with the
targets,make says "target is uptodate".This scenario is fine.
For the module("named dependent") sources ,make compile every time i make it
even though they are up to date with the targets.This scenario is not fine.
How to make it to compile only upon change in the sources not every time in
the second case.
To unsubscribe email Ilugc-request@xxxxxxxxxxxxxxxxxx with "unsubscribe"
in the subject or body of the message.