[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: newbie needs help in make
From: |
payal-make |
Subject: |
Re: newbie needs help in make |
Date: |
Wed, 8 Jul 2009 04:02:06 -0700 |
User-agent: |
Mutt/1.5.18 (2008-05-17) |
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 address@hidden $^". 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