bgldepend (1) - Linux Manuals
bgldepend: create Bigloo dependencies in makefiles
NAME
bgldepend - create Bigloo dependencies in makefiles
SYNOPSIS
bgldepend [ options ] sourcefile ...DESCRIPTION
bgldepend program reads each sourcefile in sequence and parses it to find the module include and import module directives. bgldepend computes the transitive closure of the import relationship. That is, it is sufficient to provide bgldepend with a single Bigloo file that imports all the project file (e.g. the "main" file.)
Every file that a sourcefile includes, directly or indirectly, is what bgldepend calls a dependency. These dependencies are then written to a makefile in such a way that make(1) will know which object files must be recompiled when a dependency has changed.
By default, bgldepend writes its output on the standard output device. If bgldepend is provided with a -o makefile option, it will update the makefile file. That is, it will search the makefile for the line:
and
Normally, bgldepend will be used in a makefile target so
that typing ``make bgldepend'' will bring the dependencies up
to date for the makefile. For example,
OPTIONS
EXAMPLE
MAIN=foo.scm
SRCS
bgldepend:
AUTHOR
Manuel SERRANO,
Manuel.Serrano [at] inria.fr