[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: variables defined in the makefile are ...
From: |
積丹尼 Dan Jacobson |
Subject: |
Re: variables defined in the makefile are ... |
Date: |
Mon, 04 Jan 2016 15:43:29 +0800 |
>>>>> "PS" == Paul Smith <address@hidden> writes:
PS> The right way to do this, as with any other variable you want to assign
PS> to itself (PATH is not special), is to use simply-expanded variables
PS> (:=)
PS> PATH := $(PATH):../v4
Ah so on (info "(make) Appending")
Using '+=' is similar to:
objects = main.o foo.o bar.o utils.o
objects := $(objects) another.o
... but offers no way to get out the additional space, whereas
e.g.,
PATH := $(PATH):../v4
does (perfect place to add this as an example.)