[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: a few basic doubts
From: |
Sam Ravnborg |
Subject: |
Re: a few basic doubts |
Date: |
Wed, 30 Sep 2009 08:47:04 +0200 |
User-agent: |
Mutt/1.5.18 (2008-05-17) |
On Tue, Sep 29, 2009 at 11:04:38PM -0700, Payal wrote:
> Hi,
> Please excuse for these basic doubts.
>
> 1) $ cat Makefile
> a.tar: data
> tar -cvf $@ $^
>
> d.tar: sharu
> @echo hi
>
> $ make
> make: `a.tar' is up to date.
> $ make d.tar
> hi
> $ make d.tar
> hi
>
> My doubt it why did it print "hi" the last time too. I expected,
> make: `d.tar' is up to date.
Make examine your filesystem and as there is no file named d.tar it
cannot be up-to-date.
> 4) How do I define a variable-name with a space in between like 'my
> tar'? (I understand tht it is a bad habit to do so.
empty :=
space := $(empty) $(empty)
mytar := my $(space) tar
May I suggest you to read through "make info" to answer your other questions.
Sam