In section 6.11:

Target-specific variable assignments can be prefixed with any or all of the 
special keywords export, override, or private; these apply their normal 
behavior to this instance of the variable only.

the way I read it is that you can specify one or many special keywords. If I 
try to use 2, I get an error message. As soon, as I remove one of them, make 
works as expected.

Maybe it is the wording that is misleading the 'any or all' may be meaning 
'none or any one of the special keywords'.

dev400t@dev400t-desktop:~/devel/make_test$ cat makefile

.PHONY: datapluglib
datapluglib : export override CC = g++
datapluglib:
        echo $(CC)

dev400t@dev400t-desktop:~/devel/make_test$ make
make: *** No rule to make target `export', needed by `datapluglib'.  Stop.
dev400t@dev400t-desktop:~/devel/make_test$ make --version
GNU Make 3.81
Copyright (C) 2006  Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.

This program built for i486-pc-linux-gnu


________________________________
CONFIDENTIALITY : This e-mail and any attachments are confidential and may be 
privileged. If you are not a named recipient, please notify the sender 
immediately and do not disclose the contents to another person, use it for any 
purpose or store or copy the information in any medium.

_______________________________________________
Bug-make mailing list
Bug-make@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-make

Reply via email to