-f
Use an m4 build file in alternative directory Build switch
The Build program uses
m4(1) to create a
Makefile. The
m4 directives useful for
Build are listed in Build m4 Macro Reference on page 69.
This -f
switch
specifies the file to pass to
m4(1) to create a customized
Makefile:
% ./Build -f ../../builds/oursite.m4
Configuration: pfx=, os=SunOS, rel=5.10, rbase=5, rroot=5.10, arch=sun4, sfx=,
variant=optimized
Using M4=/usr/local/bin/m4
Creating obj.SunOS.5.10.sun using ../devtools/OS/SunOS
Including ../../builds/oursite.m4 ← note
...
This -f
switch
allows you to maintain Build
configurations separate from the source
distribution. Whenever you use -f
, a comment is
automatically inserted into the resulting
Makefile recording that fact.
The command line, for example, will produce the
following comment:
####################################################################
##### This file is automatically generated -- edit at your own risk
##### Built by you@yoursite.your.domain
##### on Thu Dec 13 05:08:38 PDT 2007 using template OS/SunOS
##### including ../../builds/oursite.m4 ← note
##### in /usr/local/src/sendmail-8.14.1/src
####################################################################
Note that this build-configuration information is only preserved in the Makefile. No strings are compiled into sendmail, so it is not possible to reconstruct Build settings from the compiled binary.
If this switch is omitted, default files in the devtools/Site directory are used. See Build sendmail ...
Get sendmail, 4th Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.