Mail Archives: djgpp/2000/01/13/11:29:50
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 -