help-make
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Adding a new variable


From: Emanuele Santoro
Subject: Adding a new variable
Date: Sun, 29 Mar 2015 03:42:31 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.5.0

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello there!

After reading a blog post linked on Hacker News, I added a new
Makefile variable, #J, which stores the number of parallel jobs, that
is the command-line parameters -j and --jobs (corresponding to the
job_slots variable in the source code)

I don't know if this can help but if so, feel free to merge my make
repository from:

    https://github.com/esantoro/make

The license of the code is the same as GNU Make.

Example:
- -----------------------------------------------
address@hidden ~/sources/make/test $ ./../make
Jobs: 1
address@hidden ~/sources/make/test $ ./../make -j2
Jobs: 2
address@hidden ~/sources/make/test $ ./../make --jobs 32
Jobs: 32
address@hidden ~/sources/make/test $ cat Makefile
default:        Makefile
        @echo Jobs: ${#J}
- -----------------------------------------------

Have a nice day/night,
- -- 
Emanuele Santoro
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iEYEARECAAYFAlUXWH8ACgkQa3jIggJUg2nLxQCfeHxkgkVA3gWYD4KoIRUZO8Wq
gFUAn13pqerA3W7sftQNtfu/ygpJqdWb
=xbKl
-----END PGP SIGNATURE-----



reply via email to

[Prev in Thread] Current Thread [Next in Thread]