summaryrefslogtreecommitdiffstats
path: root/usr.bin/make
Commit message (Collapse)AuthorAgeFilesLines
* Give make(1) the ability to use KQUEUE to wait for worker processesphk2002-10-043-1/+57
| | | | | | | | | instead of polling for them. Unfortunately we cannot enable it yet because it panics the kernel somewhere in kqueue. Submitted by: Stefan Farfeleder <e0026813@stud3.tuwien.ac.at>
* In lieu of a good way to prevent every possible looping in make(1), stopjmallett2002-10-031-0/+21
| | | | | | | | | there from being more than 500 processes forked by make(1), to prevent a forkbomb from happening, in a dumb and mechanical way. PR: alane Submitted by: bin/42772 MFC after: 2 weeks
* Code that has been #if0'd with the comment "WHY" since revision 1.1 canjmallett2002-10-021-8/+1
| | | | disappear.
* Remove 6-years-stale #if0, the behaviour isn't ever going to be limited tojmallett2002-10-021-5/+1
| | | | compatible mode, as far as I know, since we use it...
* Fix spurious three-space indentation in a four-space indentation file.jmallett2002-09-291-2/+2
|
* Fix ability to use csh(1) as the make(1) shell.jmallett2002-09-291-1/+3
| | | | Sponsored by: Bright Path Solutions
* Make make(1) WARNS=6 clean except for const issues. This mostly involvesjmallett2002-09-287-69/+69
| | | | | | | | | | | renaming variables to not shadow libc functions or greater scope locals. Kinda makes one wonder if the extern ones weren't meant in some of these places :) The only thing I'd still like to do WRT this is possibly combine rstat and status in compat.c -- that should be fine, as I do not think the codepaths will want both around at once. Sponsored by: Bright Path Solutions
* Fix merge error in previous commit.jmallett2002-09-281-1/+1
| | | | Sponsored by: Bright Path Solutions
* Add empty default cases where they should be, remove non-local execution stuffjmallett2002-09-289-14/+36
| | | | | | | | | | in compat.c which doesn't even have preprocessor-conditional-hidden support code, and add a debugging statement where we might end up with a nil list somehow, but where I doubt it. First confirmed userland kill for Flexelint. Sponsored by: Bright Path Solutions
* Document the parsing bug.ru2002-09-271-1/+13
|
* Remove a semicolon that appears to be a lie.jmallett2002-09-261-1/+1
| | | | | Spotted by: SPARC64 make WARNS=3 Sponsored by: Rachel Hestilow <rachel@jerkcity.com>
* When formatting the time for a target, use %H instead of %k, which is mostlyjmallett2002-09-261-1/+1
| | | | | | the same, but uses a non-extension option. Sponsored by: Rachel Hestilow <rachel@jerkcity.com>
* Don't declare things as extern when they will be static.jmallett2002-09-261-1/+6
| | | | Sponsored by: Rachel Hestilow <rachel@jerkcity.com>
* Make the DEBUGF() macro portable by (ugh) adding a Debug() function, whichjmallett2002-09-1814-141/+163
| | | | | is merely printf() but to stderr. This takes care of the caveat which lead to the use of a vararg macro -- getting everything to stderr.
* Move common use of if (DEBUG(FOO)) printf... to DEBUGF(FOO, ...), usingjmallett2002-09-1713-431/+172
| | | | | | | | | variable length arguments to a macro. Bump version as this makes DEBUG statements *always* go to stderr rather than sometimes stdout. There are a few stragglers, which I will take care of as soon as I can. Mostly these relate to the need-for-death-of some of the remote job code. Nearby stylistic nits and XXX added/fixed where appropriate.
* #define<space> -> #define<tab>jmallett2002-09-1719-155/+155
|
* Print debugging from DEBUG(VAR) level to stderr. About to macroise this.jmallett2002-09-171-6/+6
| | | | | | (Read: More commits to come). MFC in: 4 days.
* Make it clear that the ":C" variable modifier expects an extendedarchie2002-09-061-2/+2
| | | | | | | regular expression instead of an obsolete regular expression. Also, cross-reference re_format(7) instead of regex(3). MFC after: 3 days
* Deal with bootstrapping from an old -current (almost exactly a year old)peter2002-08-311-0/+3
| | | | | | | which fails the make tests (doesn't understand ${notdef:U}) and therefore fails on __FBSDID in usr.bin/make/*. -DBOOTSTRAPPING is no help here since this is before we are using the new share/mk/* files, and it would conflict with the builtin -DBOOTSTRAPPING support later.. so use a different flag.
* Add a -C ala GNU make(1) for Makefiles which are too lazy to use $(MAKE) andjmallett2002-08-253-3/+11
| | | | | | | | this particular GNU flag. It changes into the given directory for the operation in question. This just goes into said directory at the time of parsing the argument for getopt(3). Submitted by: Rachel Hestilow <rachel@jerkcity.com>
* Allow embedded `:' and `!' in target names.ru2002-08-201-2/+31
| | | | | | PR: bin/6612 Obtained from: OpenBSD MFC after: 1 week
* Remove local prototypes for main().jmallett2002-08-191-1/+0
|
* main.c:450: warning: `targs' might be used uninitialized in this functionru2002-08-111-1/+1
| | | | | | Spotted by: patrick@godloveya.com, naddy, -Wuninitialized This segfaulted alpha and sparc64; i386 had this magically zeroed.
* Pacify ``make -f /dev/null -V FOO''.ru2002-08-071-34/+32
|
* Print a warning when we are given two scripts for one target. This is neitherjmallett2002-07-281-0/+4
| | | | | | | as wide-reaching nor intensive as NetBSD's similar, but the warning uses the same text. Inspired by: NetBSD
* Back out jmallett's realpath changes. They break a set of makefiles thatimp2002-07-261-0/+28
| | | | | | | | | we use in sublte ways with relative paths. Until they can be resolved, back out these changes and put a big comment about why using realpath is busted. Approved by: jmallett MFC After: 100 millifortnights
* Bit-width fields should be of type 'int'.jmallett2002-07-151-1/+1
|
* Use %zu to print size_t.jmallett2002-07-151-2/+2
|
* Fix a bug fixed by NetBSD in revision 1.42 of parse.c by christos which causedjmallett2002-06-201-0/+8
| | | | | | | an example Makefile I was showing someone just last night to report a variable as being recursive. Obtained from: NetBSD
* More unsigned char casts to isupper(3).jmallett2002-06-201-2/+2
| | | | Obtained from: NetBSD
* Provide a heuristic for RCS conflicts.jmallett2002-06-201-2/+9
| | | | Obtained from: NetBSD
* Look for wildcards, and balanced meta-characters such as { and } like NetBSDjmallett2002-06-201-2/+18
| | | | | | does. Obtained from: NetBSD
* Expand a buffer to reduce diffs to NetBSD.jmallett2002-06-201-2/+2
| | | | Obtained from: NetBSD
* Diff reduction for great justice against NetBSD, cast to unsigned char whenjmallett2002-06-204-18/+18
| | | | passing an argument to isspace(3).
* Fix a memory leak from previous commit by freeing the possibly expandedjmallett2002-06-191-2/+8
| | | | | string at the first opportunity, being sure to now always allocate the new string from VarPossiblyExpand. Oops.
* Possibly expand the variable name's embedded variables before using it, asjmallett2002-06-191-0/+26
| | | | | | | | | seen (somewhat) in NetBSD. This catches a few extra recursion cases that could be hidden by expanding a NIL variable causing an existing variable to be returned (which caused infinite looping and climbing memory usage in at least one case). Obtained from: NetBSD (in principle)
* make(I) appeared in PWB UNIX.jmallett2002-06-171-2/+1
|
* Avoid classy use of a variable one time with a constant value.jmallett2002-06-131-2/+1
|
* Use %p to print a pointer, not %lx and a cast to (unsigned long). Yuck.jmallett2002-06-131-1/+1
|
* Don't do stupid things to avoid unused parameters, mark them __unused.jmallett2002-06-131-2/+2
|
* String lengths and sizeof()s are size_t not int. Mark an unused parameterjmallett2002-06-123-3/+4
| | | | | | of ReadMakefile as __unused, it's there because this function is used by the abstracted list interface which normally deals with item handlers which take two arguments. Add a missing static prototype.
* The error functions take constant pointers to strings for their format.jmallett2002-06-125-10/+10
|
* Remove a stray asterisk in a comment.jmallett2002-06-011-1/+1
|
* mdoc(7) police: removed unnecessary .Ns's.ru2002-05-301-3/+3
|
* Back out the ``run shell from $PATH'' change; this was an overkillru2002-05-245-29/+7
| | | | | | and is insecure. Requested by: bde
* Set the MAKEFILE variable to the value passed to ReadMakefile(), not the fulljmallett2002-05-231-2/+5
| | | | path to it. Use the full path only for parsing it.
* str_concat() doesn't really take const arguments.jmallett2002-05-222-4/+4
| | | | | Submitted by: bde Pointy hat to: jmallett
* Do not run shell from /bin, run it from $PATH.ru2002-05-225-7/+29
| | | | Bump MAKE_VERSION to 5200205221.
* Added the MAKE_VERSION global that could be useful in determiningru2002-05-222-0/+7
| | | | | | | | | | | | if a given make(1) is feature-compatible with a set of makefiles. When merged, this will be used to replace the ugly upgrade_checks hacks in src/Makefile. Version has the RYYYYMMDDX format, where R is from RELENG_<R> and X allows for 10 distinguishable changes per day. Discussed with: bde
* Replace the evil that is __DECONST() with (void *). This is one of the leastjmallett2002-05-221-2/+2
| | | | | | evil things we can do involving the const qualifier and a pointer. Submitted by: bde, ru
OpenPOWER on IntegriCloud