make.1 (246223) | make.1 (249033) |
---|---|
1.\" $NetBSD: make.1,v 1.210 2013/01/27 18:52:01 sjg Exp $ | 1.\" $NetBSD: make.1,v 1.213 2013/03/31 05:49:51 sjg Exp $ |
2.\" 3.\" Copyright (c) 1990, 1993 4.\" The Regents of the University of California. All rights reserved. 5.\" 6.\" Redistribution and use in source and binary forms, with or without 7.\" modification, are permitted provided that the following conditions 8.\" are met: 9.\" 1. Redistributions of source code must retain the above copyright --- 14 unchanged lines hidden (view full) --- 24.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 25.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 26.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 27.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 28.\" SUCH DAMAGE. 29.\" 30.\" from: @(#)make.1 8.4 (Berkeley) 3/19/94 31.\" | 2.\" 3.\" Copyright (c) 1990, 1993 4.\" The Regents of the University of California. All rights reserved. 5.\" 6.\" Redistribution and use in source and binary forms, with or without 7.\" modification, are permitted provided that the following conditions 8.\" are met: 9.\" 1. Redistributions of source code must retain the above copyright --- 14 unchanged lines hidden (view full) --- 24.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 25.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 26.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 27.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 28.\" SUCH DAMAGE. 29.\" 30.\" from: @(#)make.1 8.4 (Berkeley) 3/19/94 31.\" |
32.Dd January 23, 2013 | 32.Dd March 30, 2013 |
33.Dt MAKE 1 34.Os 35.Sh NAME 36.Nm make 37.Nd maintain program dependencies 38.Sh SYNOPSIS 39.Nm 40.Op Fl BeikNnqrstWX --- 828 unchanged lines hidden (view full) --- 869within a makefile. 870Extra variables can be exported from a makefile 871by appending their names to 872.Ql Va .MAKEOVERRIDES . 873.Ql Ev MAKEFLAGS 874is re-exported whenever 875.Ql Va .MAKEOVERRIDES 876is modified. | 33.Dt MAKE 1 34.Os 35.Sh NAME 36.Nm make 37.Nd maintain program dependencies 38.Sh SYNOPSIS 39.Nm 40.Op Fl BeikNnqrstWX --- 828 unchanged lines hidden (view full) --- 869within a makefile. 870Extra variables can be exported from a makefile 871by appending their names to 872.Ql Va .MAKEOVERRIDES . 873.Ql Ev MAKEFLAGS 874is re-exported whenever 875.Ql Va .MAKEOVERRIDES 876is modified. |
877.It Va .MAKE.PATH_FILEMON 878If 879.Nm 880was built with 881.Xr filemon 4 882support, this is set to the path of the device node. 883This allows makefiles to test for this support. |
|
877.It Va .MAKE.PID 878The process-id of 879.Nm . 880.It Va .MAKE.PPID 881The parent process-id of 882.Nm . 883.It Va MAKE_PRINT_VAR_ON_ERROR 884When --- 867 unchanged lines hidden (view full) --- 1752.Ic .MAKE , 1753or 1754.Ic .SPECIAL 1755targets. 1756.It Ic .NOMETA_CMP 1757Ignore differences in commands when deciding if target is out of date. 1758This is useful if the command contains a value which always changes. 1759If the number of commands change, though, the target will still be out of date. | 884.It Va .MAKE.PID 885The process-id of 886.Nm . 887.It Va .MAKE.PPID 888The parent process-id of 889.Nm . 890.It Va MAKE_PRINT_VAR_ON_ERROR 891When --- 867 unchanged lines hidden (view full) --- 1759.Ic .MAKE , 1760or 1761.Ic .SPECIAL 1762targets. 1763.It Ic .NOMETA_CMP 1764Ignore differences in commands when deciding if target is out of date. 1765This is useful if the command contains a value which always changes. 1766If the number of commands change, though, the target will still be out of date. |
1767The same effect applies to any command line that uses the variable 1768.Va .OODATE , 1769which can be used for that purpose even when not otherwise needed or desired: 1770.Bd -literal -offset indent 1771 1772skip-compare-for-some: 1773 @echo this will be compared 1774 @echo this will not ${.OODATE:M.NOMETA_CMP} 1775 @echo this will also be compared 1776 1777.Ed 1778The 1779.Cm \&:M 1780pattern suppresses any expansion of the unwanted variable. |
|
1760.It Ic .NOPATH 1761Do not search for the target in the directories specified by 1762.Ic .PATH . 1763.It Ic .NOTMAIN 1764Normally 1765.Nm 1766selects the first target it encounters as the default target to be built 1767if no target was specified. --- 235 unchanged lines hidden (view full) --- 2003.It Ic .SILENT 2004Apply the 2005.Ic .SILENT 2006attribute to any specified sources. 2007If no sources are specified, the 2008.Ic .SILENT 2009attribute is applied to every 2010command in the file. | 1781.It Ic .NOPATH 1782Do not search for the target in the directories specified by 1783.Ic .PATH . 1784.It Ic .NOTMAIN 1785Normally 1786.Nm 1787selects the first target it encounters as the default target to be built 1788if no target was specified. --- 235 unchanged lines hidden (view full) --- 2024.It Ic .SILENT 2025Apply the 2026.Ic .SILENT 2027attribute to any specified sources. 2028If no sources are specified, the 2029.Ic .SILENT 2030attribute is applied to every 2031command in the file. |
2032.It Ic .STALE 2033This target gets run when a dependency file contains stale entries, having 2034.Va .ALLSRC 2035set to the name of that dependency file. |
|
2011.It Ic .SUFFIXES 2012Each source specifies a suffix to 2013.Nm . 2014If no sources are specified, any previously specified suffixes are deleted. 2015It allows the creation of suffix-transformation rules. 2016.Pp 2017Example: 2018.Bd -literal --- 80 unchanged lines hidden --- | 2036.It Ic .SUFFIXES 2037Each source specifies a suffix to 2038.Nm . 2039If no sources are specified, any previously specified suffixes are deleted. 2040It allows the creation of suffix-transformation rules. 2041.Pp 2042Example: 2043.Bd -literal --- 80 unchanged lines hidden --- |