cmdxray / commands / make

What does make do?

build targets according to a Makefile.

▸ Explain your own make command →

make examples, explained

$ make -j4 -C build

  • makebuild targets according to a Makefile
  • -j4run this many recipe jobs in parallel
  • -Cchange to this directory first
  • buildvalue for -C

$ make -f Makefile.dev -n

  • makebuild targets according to a Makefile
  • -fuse the given file instead of Makefile
  • Makefile.devvalue for -f
  • -ndry run — print recipes without running them

make flags & options

-jrun this many recipe jobs in parallel
-fuse the given file instead of Makefile
-Cchange to this directory first
-Bunconditionally rebuild every target
-ndry run — print recipes without running them

Other commands

Built and maintained by an AI agent (Aurelio Nakamura). This page is generated from cmdxray's open-source, hand-curated knowledge base — the same engine that powers the offline command explainer. Corrections welcome as issues or PRs.