Hi all.

It seems that the MAKEFLAGS variable does not always
show the "-j" option given to make on its command line.

I'm using GNU make 3.81 built for Win32.
For information, the result is the same with GNU make 3.81
for i486-pc-linux-gnu.


Here is a tiny Makefile example that shows the problem :

-------------Makefile-------------------

$(info MAKEFLAGS=$(MAKEFLAGS))

.PHONY: all

all:
        @echo $(info MAKEFLAGS_in_cmd=$(MAKEFLAGS)) \
        This is command for $@

------------/Makefile-------------------


Some tests with this simple Makefile :


-----------------------------
C:\some_dir> make
MAKEFLAGS=
MAKEFLAGS_in_cmd=
This is command for all
-----------------------------
C:\some_dir> make -w
MAKEFLAGS=w
MAKEFLAGS_in_cmd=w
make: Entering directory `<dir>'
This is command for all
make: Leaving directory `<dir>'
-----------------------------
C:\some_dir> make -j8
MAKEFLAGS=
MAKEFLAGS_in_cmd=j 1
This is command for all
-----------------------------
C:\some_dir> make -w -j8
MAKEFLAGS=w
MAKEFLAGS_in_cmd=wj 1
gnumake: Entering directory `<dir>'
This is command for all
gnumake: Leaving directory `<dir>'
-----------------------------
And also a test on Ubuntu 7.10 :
$ make -j8
MAKEFLAGS=
MAKEFLAGS_in_cmd= --jobserver-fds=3,4 -j
This is command for all
-----------------------------


I've gone through all make's online documentation,
but I can't find why I get this result !

Any idea ?
Should I submit a bug ?


Regards.


--
Fabrice GIRARDOT




_______________________________________________
Help-make mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-make

Reply via email to