version 1.22, 2000/05/15 06:10:21 |
version 1.23, 2001/04/03 23:00:08 |
|
|
the command "make b" will echo "bar". This is for compatibility with the |
the command "make b" will echo "bar". This is for compatibility with the |
way the V7 make behaved. |
way the V7 make behaved. |
|
|
|
To make things even more confusing, make uses lazy evaluation. All |
|
variables are expanded only when needed. Which means that, in |
|
|
|
a= foo |
|
|
|
b: $(a) |
|
echo $(.ALLSRC) |
|
echo $(a) |
|
|
|
foo: |
|
touch foo |
|
|
|
a= bar |
|
|
|
the command "make b" will echo "foo"; echo "bar". The first $(a) means |
|
"foo", because it's needed to generate the dependency rule when it's read, |
|
but the second $(a) is only expanded when needed, at which point a contains |
|
bar. |
|
|
It's fairly difficult to make the BSD .mk files work when you're building |
It's fairly difficult to make the BSD .mk files work when you're building |
multiple programs in a single directory. It's a lot easier to split up the |
multiple programs in a single directory. It's a lot easier to split up the |
programs than to deal with the problem. Most of the agony comes from making |
programs than to deal with the problem. Most of the agony comes from making |
|
|
|
|
NONBINMODE Mode for non-executable files. [444] |
NONBINMODE Mode for non-executable files. [444] |
|
|
|
DIRMODE Mode for new directories. [755] |
|
|
MANDIR Base path for manual installation. [/usr/share/man/cat] |
MANDIR Base path for manual installation. [/usr/share/man/cat] |
|
|
MANGRP Manual group. [bin] |
MANGRP Manual group. [bin] |
|
|
process (default values are in brackets along with comments, if set by |
process (default values are in brackets along with comments, if set by |
bsd.own.mk): |
bsd.own.mk): |
|
|
|
AFS Compile support for AFS. |
|
|
SKEY Compile in support for S/key authentication. [yes, set |
SKEY Compile in support for S/key authentication. [yes, set |
unconditionally] |
unconditionally] |
|
|
|
|
|
|
MANZ Compress manual pages at installation time. |
MANZ Compress manual pages at installation time. |
|
|
|
MANPS Define to have PostScript manual pages generated. |
|
|
SYS_INCLUDE Copy or symlink kernel include files into /usr/include. |
SYS_INCLUDE Copy or symlink kernel include files into /usr/include. |
Possible values are "symlinks" or "copies" (which is |
Possible values are "symlinks" or "copies" (which is |
the same as the variable being unset). |
the same as the variable being unset). |
|
|
GLOBAL_AUTOCONF_CACHE |
GLOBAL_AUTOCONF_CACHE |
Set to the name of a file that all cached GNU autoconf |
Set to the name of a file that all cached GNU autoconf |
test results will be saved in. Reduces redundant tests. |
test results will be saved in. Reduces redundant tests. |
|
Be careful! Redundant tests may not be redundant if you |
|
are installing substantially updated gnu programs. |
|
|
|
UVM |
|
Set to yes on machines that switched to the new unified |
|
vm. Temporary, until everything supports uvm. |
|
|
bsd.own.mk is generally useful when building your own Makefiles so that |
bsd.own.mk is generally useful when building your own Makefiles so that |
they use the same default owners etc. as the rest of the tree. |
they use the same default owners etc. as the rest of the tree. |