[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Problem with "?=" in gmake 3.76.1
From: |
Richard . Phillips |
Subject: |
Problem with "?=" in gmake 3.76.1 |
Date: |
Tue, 12 Mar 2002 11:44:11 -0500 |
I was trying to use a gmake feature I had not tried before, the ?=
assignment operator. The following is a small makefile I constructed to
demonstrate my problem. Based on my reading of
http://www.gnu.org/manual/make-3.77/html_mono/make.html, the ?= assignment
below should assign "DFLT DFLT DFLT" to MY_FLAGS since it is empty.
MY_FLAGS_DFLT := DLFT DFLT DFLT
MY_FLAGS ?= ${MY_FLAGS_DFLT}
all::
@ echo "MY_FLAGS: ${MY_FLAGS}"
When I run:
gmake -f tst all
I get:
MY_FLAGS:
Not what I expected.
What don't I understand?????
Thanks in advance
Rick Phillips
############################################################
This email message is for the sole use of the intended
recipient(s) and may contain confidential and privileged
information. Any unauthorized review, use, disclosure or
distribution is prohibited. If you are not the intended
recipient, please contact the sender by reply email and
destroy all copies of the original message. Any views
expressed in this message are those of the individual
sender, except where the sender specifically states them
to be the views of Intelsat, Ltd. and its subsidiaries.
############################################################
- Problem with "?=" in gmake 3.76.1,
Richard . Phillips <=