Re: The problem isn't us, it's you.

[prev] [thread] [next] [lurker] [Date index for 2007/02/25]

From: Yossi Kreinin
Subject: Re: The problem isn't us, it's you.
Date: 13:13 on 25 Feb 2007
Peter da Silva wrote:
> So, while on the subject of meaningless spaces, why exactly IS it that 
> "Make" cares whether you have a space or a tab before a rule?
> 
> 

I guess that's because it has to care about /something/. I mean, it doesn't care 
about all that other stuff. For example, I saw the following snippets in a Makefile:

  ifeq (true,$(RAND_VAR))
    CXXSRCS += randsrc.cpp
  else
    CXXSRCS += randsrc2.cpp
  endifL
  ifeq (true,$(RAND_VAR))
    CXXSRCS += randsrc.cpp
  else
    CXXSRCS += randsrc2.cpp
  endifR

I didn't check exactly what it thought it was doing with "endifL" and "endifR". 
This particular pointless sequence of characters (BTW, note how the if blocks 
are identical except for endifL/endifR) survived approximately a zillion rebuild 
cycles, and make didn't even squeak.
There's stuff above here

Generated at 03:01 on 27 Feb 2007 by mariachi 0.52