summaryrefslogtreecommitdiffstats
path: root/usr.bin/make
Commit message (Collapse)AuthorAgeFilesLines
* 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
* Fix the previous commit (still not used to svn vs. cvs). Use theharti2010-01-111-4/+2
| | | | | define from paths.h for the default temporary directory and remove and unneccessary getenv call.
* Make make respect the TMPDIR environment variable.harti2010-01-101-5/+14
| | | | | PR: bin/115447 Submitted by: Eugene Grosbein
* Add ability to search up the directory hierarchy for the system directory.obrien2010-01-044-11/+158
| | | | | | | 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)
* Report lines that ought to contain a ':' operator but start with a '.'obrien2010-01-041-2/+5
| | | | | | | as "Unknown directive" sinze they are more likely to be .elseif (etc). (NetBSD PR 37222). Obtained from: NetBSD
* Add check for subversion "original" marker.obrien2010-01-041-0/+1
|
* Build usr.bin/ with WARNS=6 by default.ed2010-01-021-1/+0
| | | | Also add some missing $FreeBSD$ to keep svn happy.
* Add missing `void' keyword.ed2009-12-291-1/+1
|
* - Partially revert r200417. config.h brings several definitions,stas2009-12-172-0/+2
| | | | | that appears to be actually used. Without config.h included cross-build of world failed (at least for ARM).
* Remove unnecessary includes.delphij2009-12-1110-20/+0
| | | | Reviewed by: rodrigc
* Add a missing space to the error message when execvp() failed.stefanf2009-12-051-1/+1
|
* Catch up with r144020's /Dir_FindFile/Path_FindFile/obrien2009-11-172-2/+2
|
* Garbage collect some old #ifdef'ed code from 1994 that causes vi's '%'obrien2009-11-172-27/+0
| | | | to be unable to find a match in Path_FindFile().
* Reset UPTODATE gnodes after remaking makefiles when makefjoe2009-10-181-15/+21
| | | | | is not going to be restarted: such nodes could be marked UPTODATE without doing rebuild due to remakingMakefiles being TRUE.
* Exit with non-zero error code in case of errorsfjoe2009-10-181-0/+2
| | | | when make is run with -k and not parallel (compat) make is run.
* Use strlcpy() instead of manually setting the last byte of the array to \0.delphij2009-06-231-8/+4
|
* Add volatile to sig_atomic_t where it was missing.des2009-06-141-1/+1
| | | | MFC after: 1 week
* Avoid infinite loops when remaking makefiles not onlyfjoe2009-04-074-41/+26
| | | | for Makefile targets but also for targets they depend on.
* Partially revert r186559.obrien2009-02-031-1/+1
|
* Remove duplicate OPTFLAGS definition.fjoe2009-02-021-1/+0
|
* Sort the options, per style(9).imp2009-02-021-24/+25
| | | | Reviewed by: obrien@
* David doesn't consider the prior -s behavior a bug. Back out thisimp2009-01-311-1/+0
| | | | change.
* Unbreak make -s. There's about a 10% performance improvement with -simp2009-01-301-0/+1
| | | | | | in many environments. The recent --- blah --- reintroduction has killed. That output makes almost no sense when all the other output is silenced.
* Remove inlining of functions that are used mostly in different object files.rdivacky2009-01-203-4/+4
| | | | | | | | This gets rid of gnu89 style inlining. Also silence gcc by assigning two variables NULL. This lets use to remove NO_WERROR. Approved by: kib (mentor) Approved by: harti
* Don't enable -Q by default - I've fixed the rescue build issue.obrien2009-01-132-3/+3
|
* Note that r186713 also contained a change to VarAdd where we propagate theobrien2009-01-061-2/+1
| | | | | newly created 'Var' back to the caller. Also, back out an accidentally commented WIP comment.
* + Add the -Q be-quiet flag for parallel jobs.obrien2009-01-035-24/+29
| | | | | - 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-296-4/+57
| | | | | | | | | | | | 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
* Consistently use Var_SetGlobal().obrien2008-12-293-4/+4
|
* 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
* Exit with error code 2 when run with -k (continue if errors) and build failed.fjoe2008-12-185-25/+23
|
* Since in some cases (when found obsolete) 'make' can be builded earlierache2008-09-291-1/+6
| | | | | at 'upgrade_checks' target, put arc4random_uniform() into __FreeBSD_version ifdef.
* Use arc4random_uniform(3)ache2008-08-071-1/+1
|
* Add POSIX -p flag to make(1).ed2008-07-302-4/+19
| | | | | | | | | | | | | | | | 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 splitting into words of the .for expression to allow forru2008-03-241-22/+8
| | | | | | | | | | | spaces in values. Without this change, the following valid call broke due to parsing of .MAKEFLAGS in bsd.symver.mk: cd /usr/src/lib/libc && make -n DEBUG_FLAGS="-DFOO -DBAR" Spotted by: Igor Sysoev Submitted by: Maxim Dounin, ru MFC after: 1 week
* Fix bugs in the previous revision.ru2008-03-241-8/+13
|
* If the special target .MAKEFILEDEPS exists, then enable theobrien2008-03-121-26/+26
| | | | "remaking makefiles" feature. Otherwise, follow traditional Pmake behavior.
* If the special target .MAKEFILEDEPS exists, then enable theobrien2008-03-124-1/+24
| | | | | "remaking makefiles" feature. Otherwise, follow traditional Pmake behavior. (hash table will be regenerated and committed follow this commit)
* The non-POSIX environment variable MAKE was supersededyar2008-03-051-1/+1
| | | | | | by MAKEFLAGS ages ago, so don't mention it in comments. Tested with: cmp(1)
* Don't forget to set MAKEFLAGS in the childs' environmentyar2008-03-052-31/+35
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* It seems some don't care for the anchient joke. Add WITHOUT_OLD_JOKEobrien2008-03-041-0/+2
| | | | to your CFLAGS if you fall into this camp.
* No need to tell make to DTRT with "make love", just do it.obrien2008-03-042-11/+0
| | | | | Also remove the 2002/08/31 bootstrapping aid for upgrades from year old (mid-2001) systems.
* <limits.h> is necessary for using INT_MIN, so included it hereimp2008-03-041-0/+1
| | | | | | | | explicitly rather than relying on name space pollution to pull it in for us. NB: The usage of INT_MIN is somewhat bogus and suspect to my eye, but this commit doesn't address that issue.
* 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
|
* Note 7.0 was the first version that FreeBSD/pc98 had a MACHINE of pc98imp2008-03-041-8/+7
| | | | instead of i386.
OpenPOWER on IntegriCloud