diff options
author | Richard Levitte <levitte@openssl.org> | 2019-10-13 12:33:15 +0200 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2019-10-14 16:58:20 +0200 |
commit | 70d9675342efbc9fe518e082c44f3ad80a1e4671 (patch) | |
tree | 4e94fb03adb82128dbfb5c9c2d36bec847b71342 /doc/internal/man7/build.info.pod | |
parent | 9ff872e8a325651935cf1a42dc573bb6760fa0f8 (diff) |
Building: Add modules with DEPENDs to GENERATEd files
For files GENERATEd from templates (.in files), any perl module (.pm
file) that the file depends on will automatically be used.
This means that these two lines:
GENERATE[foo]=foo.in
DEPEND[foo]=whatever.pm
will emit this command in a Makefile (or corresponding):
foo: foo.in whatever.pm configdata.pm
$(PERL) -I. -Ipathto -Mwhatever -Mconfigdata $(SRCDIR)/util/dofile.pl \\
foo.in > foo
Note that configdata.pm is automatically added, since util/dofile.pl
itself depends on it.
Reviewed-by: Tomas Mraz <tmraz@fedoraproject.org>
(Merged from https://github.com/openssl/openssl/pull/10162)
Diffstat (limited to 'doc/internal/man7/build.info.pod')
-rw-r--r-- | doc/internal/man7/build.info.pod | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/doc/internal/man7/build.info.pod b/doc/internal/man7/build.info.pod index 996e6293ad..742f78ce39 100644 --- a/doc/internal/man7/build.info.pod +++ b/doc/internal/man7/build.info.pod @@ -441,7 +441,9 @@ file as last argument. For I<generator>s where this is applicable, any B<INCLUDE> statement for the same I<item> will be given to the I<generator> as its -inclusion directories. +inclusion directories. Likewise, any B<DEPEND> statement for the same +I<item> will be given to the I<generator> as an extra file or module +to load, where this is applicable. The build file generators must be able to recognise the I<generator>. Currently, they at least recognise files ending in C<.pl>, and will |