BGLDEPEND(1)

πŸ“¦ version 4.7a, in arch rolling, fedora 43, fedora 44

πŸŽ€ BGLDEPEND ✨

okay bestie, so this is the manual page for bgldepend, a General Commands Manual situation, and it is literally the tool that makes your Bigloo makefiles ✨self-aware✨. strap in.


πŸ’– NAME πŸ’–

bgldepend β€” create Bigloo dependencies in makefiles 🫢


🌸 SYNOPSIS 🌸

bgldepend [ options ] sourcefile ...

πŸ¦‹ DESCRIPTION πŸ¦‹

so here's the vibe: bgldepend reads each sourcefile one after another, in sequence, and parses it to find the module include and import module directives. then β€” and this is the iconic part β€” it computes the transitive closure of the import relationship. meaning: you literally only have to hand bgldepend one single Bigloo file that imports all the project files (like, say, the "main" file) and it figures out the rest. main character energy, honestly.

every file that a sourcefile includes, whether directly or indirectly, is what bgldepend calls a dependency. those dependencies then get written into a makefile in such a way that make(1) will know exactly which object files must be recompiled when a dependency has changed. no stale builds, no cap. πŸ’…

by default, bgldepend writes its output to the standard output device. but if you give it a -o makefile option, it will instead update that makefile file. how? it searches the makefile for the line:

# bgldepend start (don't edit)

and for:

# bgldepend stop

and the dependencies get written in between those two lines. sandwiched. cozy. πŸ₯ͺ


✨ OPTIONS ✨

  • file β€” this is a file implementing a module. Afile reads that file to discover the name of the implemented module.
  • -search-path <path> β€” adds path to the directory list that gets read when searching for Bigloo source files. more places to look, more slay.
  • -exclude-path <path> β€” excludes path from the directory list that gets read when searching for Bigloo source files. not here, girl. πŸ™ˆ
  • -suffix <suf> β€” adds suf to the bmake source file suffixes list. the default suffixes are "scm", "sch" and "bgl". πŸ“
  • -v β€” verbose mode. she talks more.
  • -o <makefile> β€” the name of the makefile file to be updated.

🌈 EXAMPLE 🌈

normally, bgldepend gets used inside a makefile target, so that typing make bgldepend brings the dependencies up to date for the makefile. for example:

MAIN=foo.scm
SRCS = $(MAIN) bar.scm gee.scm
bgldepend:
    bgldepend -o Makefile $(MAIN)

look at her go. πŸ”₯


πŸ‘‘ SEE ALSO πŸ‘‘

bigloo(1), bglafile(1), bglmake(1), bglpp(1), bglprof(1), bgltags(1), make(1)

the whole friend group fr fr.


πŸ’œ AUTHOR πŸ’œ

Manuel SERRANO, Manuel.Serrano@inria.fr


and that's the whole page, bestie β€” written up in the General Commands Manual, dated Aug 15 1998, filed under BGLDEPEND(1). go update those makefiles, you've got this. πŸ’–βœ¨πŸŽ€
πŸ“¦ where this page comes from