Skip to content

Instantly share code, notes, and snippets.

@abecodes
Created January 8, 2021 09:48
Show Gist options
  • Select an option

  • Save abecodes/22793793b234ab6e3cdfa14176c1b96a to your computer and use it in GitHub Desktop.

Select an option

Save abecodes/22793793b234ab6e3cdfa14176c1b96a to your computer and use it in GitHub Desktop.
makefile-parallel-builds
build_parallel: build_job_1 build_job_2 build_job_3
build:
@$(MAKE) build_parallel -j$(shell sysctl hw.ncpu | grep -o '[0-9]\+')
@echo "[ok]"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment