NetBSD-Bugs archive

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

Re: bin/60850: Make could do with a syntax for immediate var expansion



The following reply was made to PR bin/60850; it has been noted by GNATS.

From: RVP <rvp%SDF.ORG@localhost>
To: gnats-bugs%netbsd.org@localhost
Cc: 
Subject: Re: bin/60850: Make could do with a syntax for immediate var
 expansion
Date: Tue, 6 Oct 2026 07:35:09 +0000 (UTC)

 On Mon, 5 Oct 2026, Valery Ushakov via gnats wrote:
 
 > Consider the case where the first assignment to CPPFLAGS contains a
 > variable reference that you do _not_ want to expand immediately when
 > that := runs
 >
 
 Tsk...
 
 ```
 CPPFLAGS =	-I/usr/include
 .if ${.PARSEDIR:_}
 CPPFLAGS +=	-I$_
 .endif
 CPPFLAGS +=	-I/usr/local/include
 
 .PHONY: all
 all:
  	@echo cc ${CPPFLAGS}
 ```
 
 I'd better stop before kre@ tells me to behave... :)
 
 -RVP
 



Home | Main Index | Thread Index | Old Index