BUILD.DEP.MK(5)

πŸ“¦ version 3.1, in nixos 26.05, nixpkgs unstable

🌸 NAME 🌸

okay bestie, this is build.dep.mk β€” the <pink>bsdbuild</pink> dependency-generation page from the <lavender>File Formats Manual</lavender>, section 5. It’s giving build-system glue in the cutest way possible. 🫢

✨ SYNOPSIS ✨

.include <bsd.dep.mk>

πŸŽ€ DESCRIPTION πŸŽ€

So <hotpink>build.dep.mk</hotpink> is a module used by build.prog.mk(5) and build.lib.mk(5), but it is never included directly into makefiles. Like, ever. Its whole job is generating .depend files, and those files are used in the build process to figure out whether object files need to be rebuilt. That’s the role. That’s the assignment. Periodt. πŸ’…

πŸ”₯ TARGETS πŸ”₯

  • depend β€” generates a .depend file by invoking the compiler with the -M flag.
  • clean-depend β€” clean up the .depend file.

πŸ’– VARIABLES πŸ’–

  • MKDEP β€” path to the mkdep(1) utility. Defaults to ${TOP}/mk/mkdep, which is bundled with BSDBuild.
  • CC β€” compiler command to invoke; it must support the -M option.

🌈 SEE ALSO 🌈

build.common.mk(5), build.lib.mk(5), build.prog.mk(5)

πŸ‘‘ HISTORY πŸ‘‘

build.dep.mk first appeared in BSDBuild 1.0.

BSDBuild is based on the 4.4BSD build system. Iconic lineage, honestly. 🧚


πŸ’Œ cute little sign-off: this page is from <pink>Debian</pink>, dated <yellow>July 18, 2007</yellow>, and its manual tag is BUILD.DEP.MK(5). bye bestie, go let those .depend files do their thing πŸ’–βœ¨

πŸ“¦ where this page comes from