Building: Add modules with DEPENDs to GENERATEd files
authorRichard Levitte <levitte@openssl.org>
Sun, 13 Oct 2019 10:33:15 +0000 (12:33 +0200)
committerRichard Levitte <levitte@openssl.org>
Mon, 14 Oct 2019 14:58:20 +0000 (16:58 +0200)
commit70d9675342efbc9fe518e082c44f3ad80a1e4671
tree4e94fb03adb82128dbfb5c9c2d36bec847b71342
parent9ff872e8a325651935cf1a42dc573bb6760fa0f8
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)
Configurations/descrip.mms.tmpl
Configurations/unix-Makefile.tmpl
Configurations/windows-makefile.tmpl
build.info
doc/internal/man7/build.info.pod