Re: Makefile missing semicolon

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Unfortunately, that doesn't build. If I break the command with
semicolons, it works ok. My question is, how to fix it.

On 7/25/07, Bernd Jendrissek <bernd.jendrissek@xxxxxxxxx> wrote:
On 7/25/07, Hynek Cihlar <hynek.cihlar@xxxxxxxxx> wrote:
> .c.o:
> #       if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \
> #       then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f $(DEPDIR)/$*.Tpo"; exit 1; fi
>         source='$<' object='$@' libtool=no \
>         DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
>         $(COMPILE) -c $<
>
> Shouldn't be the shell commands separated by semicolon?

There is only one shell command, but it happens to be broken across a
few lines (indicated by the backslashes) which make glues together
again before it passes the result to the shell.

In this case, the command getting run is (or should be):

source='$<' object='$@' libtool=no DEPDIR=$(DEPDIR) $(CCDEPMODE)
$(depcomp) $(COMPILE) -c $<



--
Hynek Cihlar


_______________________________________________
Autoconf mailing list
Autoconf@xxxxxxx
http://lists.gnu.org/mailman/listinfo/autoconf

[Index of Archives]     [GCC Help]     [Kernel Discussion]     [RPM Discussion]     [Red Hat Development]     [Yosemite News]     [Linux USB]     [Samba]

  Powered by Linux