All rights reserved.
350 | Chapter 10: Build and Use Companion Programs
Because this prefixing is a part of the Makefile, the DESTDIR environment variable prefixes
all the directories defined with the m4 technique (described in ?§10.1.3.3 on page 349).
10.1.4 -f
Use an m4 build file in alternative directory Build switch
The Build program uses m4(1) to create a Makefile. Th em4 directives useful for Build are
listed in ?§2.7 on page 69. This -f switchspecifies 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 switchallows 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.
Pages:
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634