summaryrefslogtreecommitdiffstats
path: root/usr.bin/make/make.1
Commit message (Collapse)AuthorAgeFilesLines
* multiple: Remove 3rd clause from BSD license where approved by theeadler2014-03-141-5/+1
| | | | | | | | | regents and renumber. This patch skips files in contrib/ and crypto/ Acked by: imp Discussed with: emaste
* Update date for r236338 & r236346.obrien2012-05-311-1/+1
|
* Add "-V '${VAR}'" variable expansion from Portable Berkeley Make.obrien2012-05-311-0/+5
| | | | Submitted by: Simon Gerraty <sjg@juniper.net>
* Deprecate the FreeBSD make's ":U" (to-upper case) and ":L" (to-lower case)obrien2012-05-301-0/+19
| | | | | | | modifiers for ":tu" and ":tl" from OSF's ODE, which made its way into NetBSD's make, which is the source for the Portable Berkeley Make. Submitted by: Simon Gerraty <sjg@juniper.net>
* Minor mdoc nits.joel2012-05-131-1/+1
|
* make(1): obj dirs are physical paths so write `pwd -P` rather than `pwd`.jilles2011-11-051-3/+3
| | | | | Regular pwd may return a pathname containing symlinks, but make does not use such pathnames.
* - Missing full stopsbrueffer2010-05-121-6/+6
| | | | | | | | | | | - Upper case the first character of an description - Section headings do not need to be quoted. From OpenBSD's make.1, revision 1.81 - Plural of suffix is suffixes. From OpenBSD's make.1, revision 1.61 - s/seperating/separating/ PR: 135165 Submitted by: Alan R. S. Bueno <alan.bsd@gmail.com> MFC after: 1 week
* Eliminated nits from last commit.ru2010-01-271-15/+15
| | | | OK'ed by: rodrigc
* Partial merge of man page cleanups from NetBSD:rodrigc2010-01-271-16/+16
| | | | | | | | | | | | | | revision 1.91 Fri Nov 7 01:01:46 2003 UTC by lukem Add some subsections in the VARIABLE ASSIGNMENTS section. In the "modifier description" list, show each modifier with the leading `:'. Rationale: it's hard to search for modifiers without it, and we already do the same thing in the -options and .makecommands lists. I now find it much easier to find the description for a modifier in the man page. Obtained from: NetBSD
* Add ability to search up the directory hierarchy for the system directory.obrien2010-01-041-1/+32
| | | | | | | Do by specifying ".../" with '-m' or MAKESYSPATH (new) environment variable. Reviewed by: <sjg@NetBSD.org> Obtained from: NetBSD (+ embellishment by me, sent back to NetBSD)
* Avoid infinite loops when remaking makefiles not onlyfjoe2009-04-071-1/+1
| | | | for Makefile targets but also for targets they depend on.
* + Add the -Q be-quiet flag for parallel jobs.obrien2009-01-031-1/+4
| | | | | - Enable -Q by default for the moment - there is something weird going on in the rescue build.
* 1. Add the ability to tweak the token output before targets in job mode.obrien2008-12-291-1/+26
| | | | | | | | | | | | E.g., .MAKE.JOB.PREFIX=${.newline}---[${.MAKE.PID}] would produce ---[1234] target --- 2. Added ${.newline} as a simple means of being able to include '\n' in the assignment of .MAKE.JOB.PREFIX Obtained from: NetBSD
* Fix up after last commit:trhodes2008-12-271-6/+5
| | | | | | Bump doc date; Kill hard sentence breaks; Fix commas by moving them off their own line.
* Clarify the behaviour of conditionals when dealing with comparisons.luigi2008-12-261-12/+23
| | | | | | | | | In particular, point out that string comparison can only use != and == (how weird, given that the underlying call to strcmp returns more information), that floating point values are correctly interpreted as numbers, and that the left-hand side must be a variable expansion. MFC after: 3 weeks
* Add POSIX -p flag to make(1).ed2008-07-301-1/+10
| | | | | | | | | | | | | | | | This article [1] describes the -p flag for make(1): Write to standard output the complete set of macro definitions and target descriptions. The output format is unspecified. We already support a similar flag (-d g1), but unlike -p, it still executes commands. Our implementation just turns it into -d g1, but also sets flag `printGraphOnly', which will cause make(1) to skip execution. [1] http://www.opengroup.org/onlinepubs/009695399/utilities/make.html Reviewed by: imp PR: standards/99960
* Note that the .POSIX special target disables the "Remaking Makefiles" feature.obrien2008-06-271-0/+3
|
* Fix bugs in the previous revision.ru2008-03-241-8/+13
|
* If the special target .MAKEFILEDEPS exists, then enable theobrien2008-03-121-0/+16
| | | | | "remaking makefiles" feature. Otherwise, follow traditional Pmake behavior. (hash table will be regenerated and committed follow this commit)
* Don't forget to set MAKEFLAGS in the childs' environmentyar2008-03-051-31/+33
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | from the .MAKEFLAGS global variable even if it's empty or unset. This means setting MAKEFLAGS to just an empty string in the latter case. If not doing so, make(1) behaved inconsistently WRT MAKEFLAGS. In particular, it would let a `-f foo' option down to sub-makes if .MAKEFLAGS was unset. E.g., env MAKEFLAGS="-f mymakefile" make would pass `-f mymakefile' down to sub-makes via their environment (unless mymakefile added something to .MAKEFLAGS). But any additional options appearing would change this behaviour to not passing `-f mymakefile' to sub-makes, as in: env MAKEFLAGS="-f mymakefile" make -D DUMMY or env MAKEFLAGS="-f mymakefile -D DUMMY" make (unless mymakefile cleared .MAKEFLAGS). Also make(1) would leave MAKEFLAGS at its initial value if the makefile set .MAKEFLAGS to an empty value. I.e., it was impossible to override MAKEFLAGS with an empty value. (Note well that makefiles are not to touch MAKEFLAGS directly, they alter .MAKEFLAGS instead. So make(1) can filter out things such as -f when copying MAKEFLAGS to .MAKEFLAGS at startup. Direct modifications to MAKEFLAGS just go nowhere.) While the original intentions of the BSD make authors are somewhat unclear here, the bug proves that NOT passing -f options down is the settled behaviour because the opposite behaviour is totally unreliable in the presence of any other options. In addition, not passing down -f's found in the environment is consistent with doing so WRT the command line. Update the manpage accordingly and make the whole description of MAKEFLAGS and .MAKEFLAGS more consistent as this change indeed brings more consistency into the reliable behaviour of make(1). Submitted by: ru (main.c) Tested with: make world
* Move a stray paragraph on .Ev MAKEFLAGS to where it belongs.yar2008-03-041-14/+14
|
* Revise the description of how .Ev MAKEFILE and .Va .MAKEFILE relate.yar2008-03-041-21/+27
| | | | | | | | | The most important point is that -f option(s) are never copied from .Ev MAKEFILE to .Va .MAKEFILE by make(1), which is consistent with handling the command line. (-f silently sit in .Ev MAKEFILE and go to make's children unless overwritten via .Va .MAKEFILE) Bump .Dd.
* Split descriptions of .Ev MAKEFILE and .Va .MAKEFLAGS for clarity.yar2008-03-041-2/+2
|
* Give more details on the following topics:yar2007-10-311-7/+77
| | | | | o How global, command-line, and environment variables relate. o What peculiarities the -f option has WRT ${MAKEFLAGS}.
* Better English.fjoe2007-03-081-1/+1
|
* Implement "Remaking Makefiles" feature:fjoe2007-03-081-0/+45
| | | | | | | | | | | | | | | | | | | | | | | After reading Makefile and all the files that are included using .include or .sinclude directives (source Makefiles) make considers each source Makefile as a target and tries to rebuild it. Both explicit and implicit rules are checked and all source Makefiles are updated if necessary. If any of the source Makefiles were rebuilt, make restarts from clean state. To prevent infinite loops the following source Makefile targets are ignored: - :: targets that have no prerequisites but have commands - ! targets - targets that have .PHONY or .EXEC attributes - targets without prerequisites and without commands When remaking a source Makefile options -t (touch target), -q (query mode), and -n (no exec) do not take effect, unless source Makefile is specified explicitly as a target in make command line. Additionally, system makefiles and .depend are not considered as a Makefiles that can be rebuilt. Reviewed by: harti
* o Grammar: is appears -> appears.maxim2006-12-311-1/+1
| | | | | | PR: docs/107306 Submitted by: Tomas Mozes MFC after: 1 week
* Fix a group of typos:yar2006-12-291-1/+1
| | | | | | | | preceed -> precede, preceeded -> preceded, preceeding -> preceding. Submitted by: Andre Guibert de Bruet <andy@siliconlandmark.com>
* Markup nit.ru2006-09-291-1/+1
|
* Markup fixes.ru2006-09-291-1/+1
|
* Add :u var modifier (remove adjacent duplicate words like uniq(1).fjoe2006-04-081-0/+3
| | | | | Reviewed by: harti Obtained from: NetBSD (mostly)
* Revise the manpage to a certain extent, mostly with respect toyar2005-10-141-32/+68
| | | | | | | make's processing of top-level and included makefiles. Point out at make.conf(5) and __MAKE_CONF when telling about sys.mk. Reviewed by: ru
* __MAKE_CONF doesn't really belong here because it isyar2005-10-121-10/+1
| | | | | | | a FreeBSD extension of sys.mk. A xref to make.conf(5) will be enough here. Requested by: ru
* Clarify the usage and effects of sys.mk, make.conf(5), and __MAKE_CONF.yar2005-10-101-4/+13
| | | | MFC after: 2 weeks
* Remove redundant `\&' escapes.ru2005-09-271-28/+28
|
* Fixup previous commit.ru2005-09-271-3/+2
|
* Add a .sinclude directive which does the exact same as .include, exceptphk2005-09-261-1/+9
| | | | whine when the file cannot be found and opened.
* Fix all the spelling mistakes I could find in the man pages for wordskeramida2005-07-311-1/+1
| | | | | | | | that have at least 3 characters. MFC after: 1 week Thanks to: Music band ``Chingon'' for keeping me company while searching for these.
* Markup and wording fixes.ru2005-06-141-9/+14
| | | | Approved by: re (blanket)
* Another shell attribute 'unsetenv' that will cause to unsetenv("ENV")harti2005-05-241-0/+5
| | | | | | before executing the shell. Until now this was done when the default shell was the ksh. This failed if the default shell was sh or csh and the user switched to ksh.
* Describe the meta and builtins attributes for the .SHELL specialharti2005-05-241-0/+14
| | | | target.
* Describe the -x option and the .WARN pseudo-target.harti2005-05-241-0/+33
|
* Document the new -A flag for ignoring archive errors.harti2005-03-311-2/+5
|
* Expand *n't contractions.ru2005-02-131-5/+5
|
* Fix quoting of the MAKEFLAGS environment variable by only quoting spacesharti2005-01-261-1/+24
| | | | | | | | | | and tabs. This is still not correct for command line variable values ending in a backslash because this would require a larger effort. Document this limitation in the BUGS section of the man page. The quoting is mostly compatible with that of gmake and smake. Tested by: Max Okumoto and Joerg Sonnenberger from DragonFly BSD Reviewed by: ru (man page, partly)
* Sort sections.ru2005-01-181-29/+29
|
* Scheduled mdoc(7) sweep.ru2005-01-111-3/+3
|
* Describe the .SHELL target.harti2004-12-031-1/+109
| | | | Reviewed by: ru
* Document the effects of modifying the .MAKEFLAGS internalru2004-08-181-1/+24
| | | | | | | variable and using the .MAKEFLAGS special target, and the differences between them. Reviewed by: harti
* Make explicit that MAKEOBJDIRPREFIX and MAKOBJDIR must be setharti2004-08-091-0/+7
| | | | | | | | | as environment variables and should not be set on make's command line. They happen to work accidentially as command line variables too when none of the sub-makes wants to play games with them (because make is putting command line variables into the environment and will find them there later on). Makefile.inc1 wants to change MAKEOBJDIRPREFIX. In this case one cannot set it on the command line.
OpenPOWER on IntegriCloud