On 2011-10-12 22:14:00 (-0700), MD.Mahbubur Rahman <[email protected]> wrote: > > Hi friends, > I have following code in make file. I expected as the show is a phony > target, it will not execute, but I found it executing. How can I prevent it? > Your expectation is wrong. A phony target is simply a target which doesn't create a file, so make doesn't check if the file already exists before executing the rule.
See section 4.6 of the manual: http://www.gnu.org/software/make/manual/make.html#Phony-Targets Regards, Kristof _______________________________________________ Help-make mailing list [email protected] https://lists.gnu.org/mailman/listinfo/help-make
