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.
############################################################
_______________________________________________
Help-make mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/help-make