delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/01/13/11:29:50

From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Bug in Make? Completely incorrect behavior.
Date: Thu, 13 Jan 2000 09:34:59 +0200
Organization: NetVision Israel
Lines: 41
Message-ID: <Pine.SUN.3.91.1000113093433.9693L-100000@is>
References: <387bc68e DOT 493166929 AT news DOT globalserve DOT net> <Pine DOT SUN DOT 3 DOT 91 DOT 1000112090212 DOT 28074P-100000 AT is> <387c53ff DOT 34216248 AT news DOT globalserve DOT net> <Pine DOT SUN DOT 3 DOT 91 DOT 1000112154552 DOT 258B-100000 AT is> <387cbecb DOT 61560172 AT news DOT globalserve DOT net>
NNTP-Posting-Host: is.elta.co.il
Mime-Version: 1.0
X-Trace: news.netvision.net.il 947749094 9054 199.203.121.2 (13 Jan 2000 07:38:14 GMT)
X-Complaints-To: abuse AT netvision DOT net DOT il
NNTP-Posting-Date: 13 Jan 2000 07:38:14 GMT
X-Sender: eliz AT is
In-Reply-To: <387cbecb.61560172@news.globalserve.net>
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com
Errors-To: dj-admin AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

On Wed, 12 Jan 2000, SpamKiLr wrote:

> (I still don't see how a list of dependencies, none of
> which themselves need to be built, can possibly cause a problem.)

Here's why:

> $(DOCTARGETFILE): $(DOCSOURCEFILES)                                \
> 	javadoc -sourcepath $(SRCDIR)\
>                 -overview $(SRCDIR)/pgd/protomatter/overview.html\
>                 -d $(SRCDIR)/docs\
>                 -use -version -author\
>                 -windowtitle $(WINDOWTITLE)\
>                 -doctitle $(DOCTITLE)\
>                 -header $(HFTEXT)\
>                 -footer $(HFTEXT)\
>                 -link $(JAVAURL)\
>                 -group "Protomatter Application Core"\
> "pgd.protomatter*"\
>                 -group "Fractal Types" "pgd.fractal*"\
>                 -serialwarn\
>                 $(PACKAGES)

See that trailing backslash at the end of the first line?  What it
does is effectively splice the target dependency with the command to
run for that target.  Make complains about multiple target pattern
because $(JAVAURL) includes a colon (it expands to "http://...").  So
what Make sees is something like this:

  foo: bar baz some: more

Because of the colon, this indeed looks like more than one target is
described on a single dependency line: the first target is `foo', the
other is `some'.  And Make is too dumb to catch the *real* problem.

> I've found that my news agent is inserting extra line breaks at about
> sixty-something columns, and have tried formatting the line lengths
> below and inserting backslashes to produce a sixty column version.

Thank you!  This time, I didn't need to edit the file at all.

- Raw text -


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