[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Does GNU Make allow get number of running jobs?
From: |
Oleksandr Gavenko |
Subject: |
Re: Does GNU Make allow get number of running jobs? |
Date: |
Sat, 29 Jan 2011 15:26:25 +0200 |
User-agent: |
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.2.12) Gecko/20101027 Thunderbird/3.1.6 |
On 2011-01-29 10:33, Eli Zaretskii wrote:
From: Oleksandr Gavenko<address@hidden>
Date: Sat, 29 Jan 2011 00:22:49 +0200
Cygwin make does not support jobserver.
Really? That's strange. Jobserver needs very basic Posix features,
which AFAIK Cygwin supports for a long time: signals and pipes. Are
you sure you are using a sufficiently new Cygwin port of Make? What
does "make --version" say?
If all else fails, try asking on the Cygwin mailing list. If they
tell you jobserver isn't supported, then it really isn't. But I'd be
surprised.
Sorry I am wrong. When I call make for Makefile with 'make -f ...'
it print warning:
$ LANG=C make -j 4 dist
if [ ! '' == 'dist' ]; then make -f Makefile.ru dist; fi
make[1]: Entering directory `/cygdrive/e/home/devel/job/iCrypto-hg/core'
make[1]: warning: jobserver unavailable: using -j1. Add `+' to parent
make rule.
....
But I change my Makefile to use '$(MAKE) -f ...' and warning go away
and CPU load increase to 100% instead <50% for 2 cores.
I need start from simple Makefile to see that all OK and I am wrong:
$ cat Makefile
$(error $(.FEATURES))
$ make
Makefile:1: *** target-specific order-only second-expansion else-if
archives jobserver check-symlink. Останов.
If I cearfully read manual I can found:
Recursive `make' commands should always use the variable `MAKE',
not the explicit command name `make'
--
Best regards!