delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/01/11/19:49:26

From: pderbysh AT o DOT net (SpamKiLr)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Trouble with make
Organization: Spam Haters Anonymous, insert the three letter name of the country south of Canada and a dot before "net" to unmunge.
Message-ID: <387baef2.487122768@news.globalserve.net>
References: <387976d3 DOT 341661358 AT news DOT globalserve DOT net> <Pine DOT SUN DOT 3 DOT 91 DOT 1000110132359 DOT 6993F-100000 AT is> <3879cdb8 DOT 363909713 AT news DOT globalserve DOT net> <Pine DOT SUN DOT 3 DOT 91 DOT 1000111150355 DOT 19064C-100000 AT is>
X-Newsreader: Forte Free Agent 1.11/32.235
Lines: 19
Date: Tue, 11 Jan 2000 22:31:56 GMT
NNTP-Posting-Host: 207.176.153.198
X-Complaints-To: news AT primus DOT ca
X-Trace: news2.tor.primus.ca 947631934 207.176.153.198 (Tue, 11 Jan 2000 18:05:34 EST)
NNTP-Posting-Date: Tue, 11 Jan 2000 18:05:34 EST
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

On Tue, 11 Jan 2000 15:05:51 +0200, Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
wrote:

>In other words, Make expands the variables in your prerequisite list
>as soon as it sees them, and by that time these variables were not yet
>defined.  (This is one reason why each Makefile begins by defining all
>the variables.)  In contrast, variables in rules' commands are only
>expanded when that rule's commands are run, that's why `echo' prints
>the variables correctly.

Ah, thanks for explaining that. Not quite intuitive behavior. I
suppose I should move the variables to the top then. I'll try that.

>Btw, your Makefile arrived severely butchered by your mailer (long lines 
>were wrapped), which required a non-trivial amount of editing before I 
>could try it.  Please try to avoid this in the future.

Strange... it didn't have any "long lines" when I sent it... none that
wrapped in either my programmer's editor or news client.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019