aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/make/make.1
Commit message (Collapse)AuthorAgeFilesLines
* Remove old fmake. It wasn't built by default for some time. Users thatWarner Losh2015-06-161-1843/+0
| | | | | | | | | | really need it can find it in the devel/fmake port or pkg install fmake. Note: This commit is orthogonal to the question 'can we fmake buildworld'. Differential Revision: https://reviews.freebsd.org/D2840 Notes: svn path=/head/; revision=284464
* multiple: Remove 3rd clause from BSD license where approved by theEitan Adler2014-03-141-5/+1
| | | | | | | | | | | | regents and renumber. This patch skips files in contrib/ and crypto/ Acked by: imp Discussed with: emaste Notes: svn path=/head/; revision=263142
* Update date for r236338 & r236346.David E. O'Brien2012-05-311-1/+1
| | | | Notes: svn path=/head/; revision=236365
* Add "-V '${VAR}'" variable expansion from Portable Berkeley Make.David E. O'Brien2012-05-311-0/+5
| | | | | | | Submitted by: Simon Gerraty <sjg@juniper.net> Notes: svn path=/head/; revision=236346
* Deprecate the FreeBSD make's ":U" (to-upper case) and ":L" (to-lower case)David E. O'Brien2012-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> Notes: svn path=/head/; revision=236338
* Minor mdoc nits.Joel Dahl2012-05-131-1/+1
| | | | Notes: svn path=/head/; revision=235400
* make(1): obj dirs are physical paths so write `pwd -P` rather than `pwd`.Jilles Tjoelker2011-11-051-3/+3
| | | | | | | | Regular pwd may return a pathname containing symlinks, but make does not use such pathnames. Notes: svn path=/head/; revision=227121
* - Missing full stopsChristian Brueffer2010-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 Notes: svn path=/head/; revision=207948
* Eliminated nits from last commit.Ruslan Ermilov2010-01-271-15/+15
| | | | | | | OK'ed by: rodrigc Notes: svn path=/head/; revision=203098
* Partial merge of man page cleanups from NetBSD:Craig Rodrigues2010-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 Notes: svn path=/head/; revision=203055
* Add ability to search up the directory hierarchy for the system directory.David E. O'Brien2010-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) Notes: svn path=/head/; revision=201526
* Avoid infinite loops when remaking makefiles not onlyMax Khon2009-04-071-1/+1
| | | | | | | for Makefile targets but also for targets they depend on. Notes: svn path=/head/; revision=190821
* + Add the -Q be-quiet flag for parallel jobs.David E. O'Brien2009-01-031-1/+4
| | | | | | | | - Enable -Q by default for the moment - there is something weird going on in the rescue build. Notes: svn path=/head/; revision=186713
* 1. Add the ability to tweak the token output before targets in job mode.David E. O'Brien2008-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 Notes: svn path=/head/; revision=186559
* Fix up after last commit:Tom Rhodes2008-12-271-6/+5
| | | | | | | | | Bump doc date; Kill hard sentence breaks; Fix commas by moving them off their own line. Notes: svn path=/head/; revision=186506
* Clarify the behaviour of conditionals when dealing with comparisons.Luigi Rizzo2008-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 Notes: svn path=/head/; revision=186502
* Add POSIX -p flag to make(1).Ed Schouten2008-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 Notes: svn path=/head/; revision=181021
* Note that the .POSIX special target disables the "Remaking Makefiles" feature.David E. O'Brien2008-06-271-0/+3
| | | | Notes: svn path=/head/; revision=180065
* Fix bugs in the previous revision.Ruslan Ermilov2008-03-241-8/+13
| | | | Notes: svn path=/head/; revision=177541
* If the special target .MAKEFILEDEPS exists, then enable theDavid E. O'Brien2008-03-121-0/+16
| | | | | | | | "remaking makefiles" feature. Otherwise, follow traditional Pmake behavior. (hash table will be regenerated and committed follow this commit) Notes: svn path=/head/; revision=177101
* Don't forget to set MAKEFLAGS in the childs' environmentYaroslav Tykhiy2008-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 Notes: svn path=/head/; revision=176839
* Move a stray paragraph on .Ev MAKEFLAGS to where it belongs.Yaroslav Tykhiy2008-03-041-14/+14
| | | | Notes: svn path=/head/; revision=176793
* Revise the description of how .Ev MAKEFILE and .Va .MAKEFILE relate.Yaroslav Tykhiy2008-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. Notes: svn path=/head/; revision=176792
* Split descriptions of .Ev MAKEFILE and .Va .MAKEFLAGS for clarity.Yaroslav Tykhiy2008-03-041-2/+2
| | | | Notes: svn path=/head/; revision=176789
* Give more details on the following topics:Yaroslav Tykhiy2007-10-311-7/+77
| | | | | | | | o How global, command-line, and environment variables relate. o What peculiarities the -f option has WRT ${MAKEFLAGS}. Notes: svn path=/head/; revision=173217
* Better English.Max Khon2007-03-081-1/+1
| | | | Notes: svn path=/head/; revision=167339
* Implement "Remaking Makefiles" feature:Max Khon2007-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 Notes: svn path=/head/; revision=167330
* o Grammar: is appears -> appears.Maxim Konovalov2006-12-311-1/+1
| | | | | | | | | PR: docs/107306 Submitted by: Tomas Mozes MFC after: 1 week Notes: svn path=/head/; revision=165668
* Fix a group of typos:Yaroslav Tykhiy2006-12-291-1/+1
| | | | | | | | | | | preceed -> precede, preceeded -> preceded, preceeding -> preceding. Submitted by: Andre Guibert de Bruet <andy@siliconlandmark.com> Notes: svn path=/head/; revision=165628
* Markup nit.Ruslan Ermilov2006-09-291-1/+1
| | | | Notes: svn path=/head/; revision=162816
* Markup fixes.Ruslan Ermilov2006-09-291-1/+1
| | | | Notes: svn path=/head/; revision=162792
* Add :u var modifier (remove adjacent duplicate words like uniq(1).Max Khon2006-04-081-0/+3
| | | | | | | | Reviewed by: harti Obtained from: NetBSD (mostly) Notes: svn path=/head/; revision=157588
* Revise the manpage to a certain extent, mostly with respect toYaroslav Tykhiy2005-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 Notes: svn path=/head/; revision=151351
* __MAKE_CONF doesn't really belong here because it isYaroslav Tykhiy2005-10-121-10/+1
| | | | | | | | | | a FreeBSD extension of sys.mk. A xref to make.conf(5) will be enough here. Requested by: ru Notes: svn path=/head/; revision=151255
* Clarify the usage and effects of sys.mk, make.conf(5), and __MAKE_CONF.Yaroslav Tykhiy2005-10-101-4/+13
| | | | | | | MFC after: 2 weeks Notes: svn path=/head/; revision=151201
* Remove redundant `\&' escapes.Ruslan Ermilov2005-09-271-28/+28
| | | | Notes: svn path=/head/; revision=150609
* Fixup previous commit.Ruslan Ermilov2005-09-271-3/+2
| | | | Notes: svn path=/head/; revision=150608
* Add a .sinclude directive which does the exact same as .include, exceptPoul-Henning Kamp2005-09-261-1/+9
| | | | | | | whine when the file cannot be found and opened. Notes: svn path=/head/; revision=150595
* Fix all the spelling mistakes I could find in the man pages for wordsGiorgos Keramidas2005-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. Notes: svn path=/head/; revision=148580
* Markup and wording fixes.Ruslan Ermilov2005-06-141-9/+14
| | | | | | | Approved by: re (blanket) Notes: svn path=/head/; revision=147370
* Another shell attribute 'unsetenv' that will cause to unsetenv("ENV")Hartmut Brandt2005-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. Notes: svn path=/head/; revision=146570
* Describe the meta and builtins attributes for the .SHELL specialHartmut Brandt2005-05-241-0/+14
| | | | | | | target. Notes: svn path=/head/; revision=146563
* Describe the -x option and the .WARN pseudo-target.Hartmut Brandt2005-05-241-0/+33
| | | | Notes: svn path=/head/; revision=146562
* Document the new -A flag for ignoring archive errors.Hartmut Brandt2005-03-311-2/+5
| | | | Notes: svn path=/head/; revision=144388
* Expand *n't contractions.Ruslan Ermilov2005-02-131-5/+5
| | | | Notes: svn path=/head/; revision=141846
* Fix quoting of the MAKEFLAGS environment variable by only quoting spacesHartmut Brandt2005-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) Notes: svn path=/head/; revision=140870
* Sort sections.Ruslan Ermilov2005-01-181-29/+29
| | | | Notes: svn path=/head/; revision=140420
* Scheduled mdoc(7) sweep.Ruslan Ermilov2005-01-111-3/+3
| | | | Notes: svn path=/head/; revision=140055
* Describe the .SHELL target.Hartmut Brandt2004-12-031-1/+109
| | | | | | | Reviewed by: ru Notes: svn path=/head/; revision=138335
* Document the effects of modifying the .MAKEFLAGS internalRuslan Ermilov2004-08-181-1/+24
| | | | | | | | | | variable and using the .MAKEFLAGS special target, and the differences between them. Reviewed by: harti Notes: svn path=/head/; revision=133957