On Wed, Jul 08, 2009 at 05:23:30PM +0800, CHEN Cheng wrote:
> See, your target is "default", instead of "default.tar".
> 
> Whenever gmake checks whether to update this target or not, it
> compares modify time with its prerequisites' modify time.
> 
> In this case, there is no file named "default" generated by command
> "tar cvf [email protected] $^". So, in gmake's eyes, this target should be always
> updated. Note that I found no statement about this in the manual, but
> the following code should work:
> 
> default.tar: ttt Make1 makefile
>     tar cvf $@ $^

Thanks a lot for the help. It works as you say.
- Payal


_______________________________________________
Help-make mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-make

Reply via email to