mcandre / toys

code demos for newbies
https://github.com/mcandre/toys
30 stars 6 forks source link

accelerate makefiles #548

Closed mcandre closed 1 month ago

mcandre commented 1 month ago

Divide steps into more independent tasks.

Skip unneeded tasks in CI/CD jobs.

Explore -j (4) parallelism, particularly POSIX support.

mcandre commented 1 month ago

POSIX has yet to support a -j flag for parallelism.

Let's declare a minimum of GNU / BSD make in projects that use makefiles.

And create an alias of make that supplies -j 4.

mcandre commented 1 month ago

-j 4 appears to work as expected for GNU make.

BSD make documentation indicates similar support for the same CLI syntax.