[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Use $(MKDIR_P) instead of @MKDIR_P@
From: |
Bruno Haible |
Subject: |
Re: Use $(MKDIR_P) instead of @MKDIR_P@ |
Date: |
Tue, 1 Sep 2009 01:03:41 +0200 |
User-agent: |
KMail/1.9.9 |
Jim Meyering wrote:
> I've been lobbying to remove the obsolescent @VAR@ notation
> in favor of $(VAR) notation for a long time.
Using @VAR@ instead of $(VAR) removes one level of complexity, thus
making debugging easier: If someone reports that in a Makefile,
@FOO@ does not expand to a correct value, the next question I ask
him: "look what's the value of FOO in config.status". Whereas when
$(FOO) does not expand to a correct value, I have to ask 3 questions:
- Verify that no other assignment to FOO exists in the Makefile,
- Verify that no FOO variable assignment was passed from the parent
directory.
- Look what's the value of FOO in config.status.
Additionally, using $(VAR) implies 'make' processing: If the expansion
contains a '#', the expansion will be truncated at that point in $(VAR)
but not in @address@hidden
$(VAR) certainly adds a level of flexibility over @VAR@, but I find that
rarely useful.
Bruno