1BGLDEPEND(1)                General Commands Manual               BGLDEPEND(1)
2
3
4

NAME

6       bgldepend - create Bigloo dependencies in makefiles
7
8

SYNOPSIS

10       bgldepend [ options ] sourcefile ...
11
12

DESCRIPTION

14       bgldepend  program  reads each sourcefile in sequence and  parses it to
15       find the module include and import module  directives.  bgldepend  com‐
16       putes the transitive closure of the import relationship. That is, it is
17       sufficient to provide bgldepend with a single Bigloo file that  imports
18       all the project file (e.g. the "main" file.)
19
20       Every   file   that  a  sourcefile includes, directly or indirectly, is
21       what bgldepend calls a dependency. These dependencies are then  written
22       to  a  makefile in such a way that make(1) will know which object files
23       must be recompiled when a dependency has changed.
24
25       By default, bgldepend writes its output on the standard output  device.
26       If  bgldepend is provided with a -o makefile option, it will update the
27       makefile file. That is, it will search the makefile for the line:
28        # bgldepend start (don't edit)
29       and
30        # bgldepend stop
31
32       Dependencies will be written in between these two lines.
33
34

OPTIONS

36       file            Is an file implementing a module.   Afile  reads
37                       that  file  to  discover  the name of the imple‐
38                       mented module.
39
40
41       -search-path <path>
42                       Add path to the directory list read for  search‐
43                       ing Bigloo source files.
44
45
46       -exclude-path <path>
47                       Exclude  path  from  the directory list read for
48                       searching Bigloo source files.
49
50
51       -suffix <suf>   Adds suf to the bmake source file suffixes list.
52                       Default suffixes are "scm", "sch" and "bgl".
53
54
55       -v              Verbose mode
56
57
58       -o <makefile>   The name of the makefile file to be updated
59
60

EXAMPLE

62       Normally,   bgldepend  will be used in a makefile target so that
63       typing ``make bgldepend'' will bring the dependencies up to date
64       for the makefile.  For example,
65
66          MAIN=foo.scm
67          SRCS = $(MAIN) bar.scm gee.scm
68          bgldepend:
69              bgldepend -o Makefile $(MAIN)
70
71

SEE ALSO

73       bigloo(1),  bglafile(1), bglmake(1), bglpp(1), bglprof(1), bglt‐
74       ags(1), make(1)
75
76

AUTHOR

78       Manuel SERRANO, Manuel.Serrano@inria.fr
79
80
81
82
83
84                                  Aug 15 1998                     BGLDEPEND(1)
Impressum