From: Eli Zaretskii 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: References: <387bc68e DOT 493166929 AT news DOT globalserve DOT net> <387c53ff DOT 34216248 AT news DOT globalserve DOT net> <387cbecb DOT 61560172 AT news DOT globalserve DOT net> NNTP-Posting-Host: is.elta.co.il Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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 Precedence: bulk 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.