aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/make
Commit message (Collapse)AuthorAgeFilesLines
...
* | 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
* | Fix the previous commit (still not used to svn vs. cvs). Use theHartmut Brandt2010-01-111-4/+2
| | | | | | | | | | | | | | | | define from paths.h for the default temporary directory and remove and unneccessary getenv call. Notes: svn path=/head/; revision=202070
* | Make make respect the TMPDIR environment variable.Hartmut Brandt2010-01-101-5/+14
| | | | | | | | | | | | | | | | PR: bin/115447 Submitted by: Eugene Grosbein Notes: svn path=/head/; revision=202045
* | Add ability to search up the directory hierarchy for the system directory.David E. O'Brien2010-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) Notes: svn path=/head/; revision=201526
* | Report lines that ought to contain a ':' operator but start with a '.'David E. O'Brien2010-01-041-2/+5
| | | | | | | | | | | | | | | | | | | | as "Unknown directive" sinze they are more likely to be .elseif (etc). (NetBSD PR 37222). Obtained from: NetBSD Notes: svn path=/head/; revision=201456
* | Add check for subversion "original" marker.David E. O'Brien2010-01-041-0/+1
| | | | | | | | Notes: svn path=/head/; revision=201455
* | Build usr.bin/ with WARNS=6 by default.Ed Schouten2010-01-021-1/+0
| | | | | | | | | | | | | | Also add some missing $FreeBSD$ to keep svn happy. Notes: svn path=/head/; revision=201386
* | Add missing `void' keyword.Ed Schouten2009-12-291-1/+1
| | | | | | | | Notes: svn path=/head/; revision=201225
* | - Partially revert r200417. config.h brings several definitions,Stanislav Sedov2009-12-172-0/+2
| | | | | | | | | | | | | | | | that appears to be actually used. Without config.h included cross-build of world failed (at least for ARM). Notes: svn path=/head/; revision=200630
* | Remove unnecessary includes.Xin LI2009-12-1110-20/+0
| | | | | | | | | | | | | | Reviewed by: rodrigc Notes: svn path=/head/; revision=200417
* | Add a missing space to the error message when execvp() failed.Stefan Farfeleder2009-12-051-1/+1
| | | | | | | | Notes: svn path=/head/; revision=200120
* | Catch up with r144020's /Dir_FindFile/Path_FindFile/David E. O'Brien2009-11-172-2/+2
| | | | | | | | Notes: svn path=/head/; revision=199419
* | Garbage collect some old #ifdef'ed code from 1994 that causes vi's '%'David E. O'Brien2009-11-172-27/+0
| | | | | | | | | | | | | | to be unable to find a match in Path_FindFile(). Notes: svn path=/head/; revision=199404
* | Reset UPTODATE gnodes after remaking makefiles when makeMax Khon2009-10-181-15/+21
| | | | | | | | | | | | | | | | is not going to be restarted: such nodes could be marked UPTODATE without doing rebuild due to remakingMakefiles being TRUE. Notes: svn path=/head/; revision=198199
* | Exit with non-zero error code in case of errorsMax Khon2009-10-181-0/+2
| | | | | | | | | | | | | | when make is run with -k and not parallel (compat) make is run. Notes: svn path=/head/; revision=198197
* | Use strlcpy() instead of manually setting the last byte of the array to \0.Xin LI2009-06-231-8/+4
| | | | | | | | Notes: svn path=/head/; revision=194797
* | Add volatile to sig_atomic_t where it was missing.Dag-Erling Smørgrav2009-06-141-1/+1
| | | | | | | | | | | | | | MFC after: 1 week Notes: svn path=/head/; revision=194217
* | Avoid infinite loops when remaking makefiles not onlyMax Khon2009-04-074-41/+26
| | | | | | | | | | | | | | for Makefile targets but also for targets they depend on. Notes: svn path=/head/; revision=190821
* | Partially revert r186559.David E. O'Brien2009-02-031-1/+1
| | | | | | | | Notes: svn path=/head/; revision=188075
* | Remove duplicate OPTFLAGS definition.Max Khon2009-02-021-1/+0
| | | | | | | | Notes: svn path=/head/; revision=188001
* | Sort the options, per style(9).Warner Losh2009-02-021-24/+25
| | | | | | | | | | | | | | Reviewed by: obrien@ Notes: svn path=/head/; revision=187995
* | David doesn't consider the prior -s behavior a bug. Back out thisWarner Losh2009-01-311-1/+0
| | | | | | | | | | | | | | change. Notes: svn path=/head/; revision=187968
* | Unbreak make -s. There's about a 10% performance improvement with -sWarner Losh2009-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. Notes: svn path=/head/; revision=187921
* | Remove inlining of functions that are used mostly in different object files.Roman Divacky2009-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 Notes: svn path=/head/; revision=187475
* | Don't enable -Q by default - I've fixed the rescue build issue.David E. O'Brien2009-01-132-3/+3
| | | | | | | | Notes: svn path=/head/; revision=187132
* | Note that r186713 also contained a change to VarAdd where we propagate theDavid E. O'Brien2009-01-061-2/+1
| | | | | | | | | | | | | | | | newly created 'Var' back to the caller. Also, back out an accidentally commented WIP comment. Notes: svn path=/head/; revision=186831
* | + Add the -Q be-quiet flag for parallel jobs.David E. O'Brien2009-01-035-24/+29
| | | | | | | | | | | | | | | | - 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-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 Notes: svn path=/head/; revision=186559
* | Consistently use Var_SetGlobal().David E. O'Brien2008-12-293-4/+4
| | | | | | | | Notes: svn path=/head/; revision=186558
* | 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
* | Exit with error code 2 when run with -k (continue if errors) and build failed.Max Khon2008-12-185-25/+23
| | | | | | | | Notes: svn path=/head/; revision=186279
* | Since in some cases (when found obsolete) 'make' can be builded earlierAndrey A. Chernov2008-09-291-1/+6
| | | | | | | | | | | | | | | | at 'upgrade_checks' target, put arc4random_uniform() into __FreeBSD_version ifdef. Notes: svn path=/head/; revision=183465
* | Use arc4random_uniform(3)Andrey A. Chernov2008-08-071-1/+1
| | | | | | | | Notes: svn path=/head/; revision=181397
* | Add POSIX -p flag to make(1).Ed Schouten2008-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 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 splitting into words of the .for expression to allow forRuslan Ermilov2008-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 Notes: svn path=/head/; revision=177545
* | 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-26/+26
| | | | | | | | | | | | | | "remaking makefiles" feature. Otherwise, follow traditional Pmake behavior. Notes: svn path=/head/; revision=177102
* | If the special target .MAKEFILEDEPS exists, then enable theDavid E. O'Brien2008-03-124-1/+24
| | | | | | | | | | | | | | | | "remaking makefiles" feature. Otherwise, follow traditional Pmake behavior. (hash table will be regenerated and committed follow this commit) Notes: svn path=/head/; revision=177101
* | The non-POSIX environment variable MAKE was supersededYaroslav Tykhiy2008-03-051-1/+1
| | | | | | | | | | | | | | | | | | by MAKEFLAGS ages ago, so don't mention it in comments. Tested with: cmp(1) Notes: svn path=/head/; revision=176842
* | Don't forget to set MAKEFLAGS in the childs' environmentYaroslav Tykhiy2008-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 Notes: svn path=/head/; revision=176839
* | It seems some don't care for the anchient joke. Add WITHOUT_OLD_JOKEDavid E. O'Brien2008-03-041-0/+2
| | | | | | | | | | | | | | to your CFLAGS if you fall into this camp. Notes: svn path=/head/; revision=176808
* | No need to tell make to DTRT with "make love", just do it.David E. O'Brien2008-03-042-11/+0
| | | | | | | | | | | | | | | | Also remove the 2002/08/31 bootstrapping aid for upgrades from year old (mid-2001) systems. Notes: svn path=/head/; revision=176807
* | <limits.h> is necessary for using INT_MIN, so included it hereWarner Losh2008-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. Notes: svn path=/head/; revision=176799
* | 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
* | Note 7.0 was the first version that FreeBSD/pc98 had a MACHINE of pc98Warner Losh2008-03-041-8/+7
| | | | | | | | | | | | | | instead of i386. Notes: svn path=/head/; revision=176786
* | Linux requires -D__dead2= and -D__unused= to get rid of theWarner Losh2008-03-041-1/+1
| | | | | | | | | | | | | | | | sys/cdef.h-isms in the make source. The variant of linux I tried it on doesn't have arc4random, so -Darc4random=random too. Notes: svn path=/head/; revision=176785