On Tue, Nov 6, 2012 at 4:02 PM, LANGLOIS Olivier PIS -EXT <olivier.pis.langl...@transport.alstom.com> wrote: > 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
No, the docs are correct *for the current version of GNU make*. You need to either a) upgrade to the current version, or b) read the documentation that was included in the version that you have installed; try running "info make" I suggest you also yell at your distribution for both not providing the current version *and* for not pointing you at the correct documentation for the version that they are shipping. Philip Guenther _______________________________________________ Bug-make mailing list Bug-make@gnu.org https://lists.gnu.org/mailman/listinfo/bug-make