summaryrefslogtreecommitdiffstats
path: root/usr.bin/make
Commit message (Collapse)AuthorAgeFilesLines
* Fix a temp file race occurring only when -j is used.hoek1999-08-222-15/+17
| | | | | Noticed by: ru Obtained from: OpenBSD
* Merge style- and trivial- only changes from OpenBSD (dated 1999/07/29-19:55+1).hoek1999-08-1723-290/+535
| | | | Obtained from: OpenBSD, sometimes indirected from NetBSD; myself
* Bad reference of getcwd(2) changed to getcwd(3).chris1999-08-141-2/+2
|
* Make VPATH explanation more concise. I apparently was not thinkingchris1999-08-121-11/+4
| | | | on the previous commit.
* Move ${VPATH} explanation under the .PATH rule section.chris1999-08-121-16/+13
| | | | | Clarify my vague explanation of how ${VPATH} works and why it shouldn't be used.
* Bugfix to last commit: Correctly intuit when an lhs is a string vs. number.hoek1999-08-121-2/+3
|
* Document ${VPATH} and that it _should_not_ be used in any new Makefiles.chris1999-08-111-1/+16
| | | | | PR: 10556 Submitted by: Dominic Mitchell <Dom.Mitchell@palmerharvey.co.uk>
* Add a -E flag, similar to -e (overide variables from environment) excepthoek1999-07-314-14/+47
| | | | | | | | that -E only operates for a specified variable. Useful since the -e option will often pull-in many unwanted variable overrides (esp. in a make world situation). Uses include overriding BINOWN (which cannot be done by normal methods or through abuses of MAKEFLAGS) or likely for ports to honour CFLAGS (provided they're running on a system whose make(1) has this option).
* Print an error message on illegal numerical arguments.hoek1999-07-311-5/+20
| | | | Submitted by: bin/9349 (slightly modified) Assar Westerlund <assar@sics.se>
* When printing an error message after command execution fails, don't assumehoek1999-07-311-2/+4
| | | | | the only possible error is "command not found". This makes debugging of messages such as "/bin/sh: not found" less common...
* Per requests from the community, commit rudimentary cross compilationimp1999-07-071-2/+2
| | | | | | | | | | | | support. I've been building world with these changes for months w/o ill effect. I've also managed to build the cross tool chain for MIPS with these patches. Please note that the extent to which these patches work is largely dictated by how well our tool chains support the cross compilation. Building alpha binaries on i386 doesn't work. Supposedly building i386 binaries on alpha does work, but I've not verified it with these patches, however.
* Handle ".if ${T} > 1 || ${T} < 3" and friends correctly.hoek1999-05-251-13/+14
| | | | Reported-by: asami
* Add :Q to quote variable expansion to all proper expansion ofimp1999-04-192-2/+49
| | | | | | | variables for recursive makes. This makes it less painful to cross build recent NetBSD kernels on FreeBSD. Obtained from: NetBSD
* Make MACHINE_ARCH sensitive to the environment, as well as using theimp1999-03-011-4/+11
| | | | | | | | compiled in default in case it isn't defined. This is needed to make cross compilation work in some edge cases. It also makes cross compiling on FreeBSD other BSD's easier as well. Obtained from: NetBSD, OpenBSD (predates the split)
* Remove couple of 'extern int errno'. (They turned to something funny whendt1999-02-141-4/+1
| | | | <errno.h> included).
* Don't allow pointer underrun in loop.jkh1999-01-081-2/+4
| | | | Spotted by: John W. DeBoskey <jwd@unx.sas.com>
* Described the search path Make uses to find makefiles.pds1998-11-291-4/+37
|
* Fixed missing 'v' in usage message.bde1998-11-151-2/+2
|
* Fixed bugs in previous commit:bde1998-11-151-4/+5
| | | | | | - missing `v' in synopsis. - 'v' disordered relative to 'V' in description of options. - line too long in description of 'v'.
* Added a -v (verbose) option and hid multi-job file banner generationdg1998-11-144-7/+15
| | | | behind it.
* Only process the ``PWD'' environmental var if built with "WANT_ENV_PWD"obrien1998-10-182-5/+14
| | | | | defined. Bash v2 sets PWD and it creates major problems for those of us with /usr/src being a symlink. See the lists for examples of the problems.
* Fix make world breakage from last commit.jdp1998-10-151-2/+2
|
* Fix a serious bug in make(1)'s handling of archive libraries.jkoshy1998-10-151-2/+2
| | | | | | | | | | | | | | This case did not need to be tested when RANLIBMAG was defined (as when in an `aout' environment) because Arch_StatMember() treated the two cases of the library not being present and a member of the library not being present the same way, forcing a rebuild of the library. Since in the ELF environment we don't look inside archive libraries we now need to check if the archive library is present in order to determine its `out-of-date'-ness. (I hope I've been able to meet the Oct 15th freeze). Reported-by: Steve Price (and a few others whom I've forgotten, sorry)
* Set the `pc98' string to the MACHINE if machdep.ispc98 != 0.kato1998-09-091-1/+23
|
* Don't define RANLIBMAG if building an elf version of make. The RANLIBMAGjb1998-09-091-2/+2
| | | | | | | | | | option lets make look inside archive libraries when determining if a library is out-of-date. I don't think that make should look inside files, so this fix effectively tells it not to. If the decision is made (by someone else) that make _should_ be doing this, it will need to be taught how to recognise elf archive libraries. Problem noticed by: Joseph Koshy <jkoshy@freebsd.org>
* Fix spurious `free()' when -d g2 is enabled.jkoshy1998-09-091-3/+12
| | | | | PR: 6790 Submitted by: nsmart <njs3@doc.ic.ac.uk>
* When exiting on SIGINT, exit with signal statuscracauer1998-08-242-5/+7
|
* Use malloc + sprintf rather than asprintf to ensure portability toimp1998-07-261-2/+4
| | | | | | | other, less advanced architecutres. This should minorly help porting efforts of FreeBSD. I've done several make worlds since this came up with this change, as well as debugging several interesting nits with -V (which is the only thing this change will affect really).
* Make -V expand it's arguments. This means that instead of 'make -V OBJS'peter1998-06-131-6/+8
| | | | | printing something useless (to a shell) like: ${SRCS:N*.h:R:S/$/.o/g} it will instead print the actual ${OBJS} value.
* Don't forget to pretend that `make -n -jN' makes the targets that itbde1998-06-041-1/+2
| | | | | | | | | | | | | | | | | | | | | says it pretends to make. This bug was apparently harmless except for normal cases involving .ORDER statements when it made debugging of -jN using -n very confusing. E.g., for: .ORDER: beforedepend .depend depend: beforedepend .depend where beforedepend depends on something so that it is not initially up to date, `make [-n] -j2 depend' causes `make' to wait for itself to make beforedepend. This works fine without -n. The job to make beforedepend has normally been started, and beforedepend is marked as made when the job completes. However, with -n, the pseudo-job for making beforedepend has normally completed, and in any case there was no chance of beforedepend being marked as made. `make' actually exited almost immediately with status 0 instead of waiting forever.
* PR: bin/6828thepish1998-06-021-30/+53
| | | | | | | Submitted by: njs3@doc.ic.ac.uk Obtained from: NetBSD Implement embedded variable expansion
* Add a graceful jumping off point with a new .error directive.steve1998-05-252-21/+60
| | | | | PR: 6720 Submitted by: Niall Smart <njs3@doc.ic.ac.uk>
* Fix broken (at least on alpha, but probably on i386 too) code whichjb1998-05-131-4/+4
| | | | | is supposed to walk an arry of character pointers, not an array of characters.
* Some commands are shell builtins. Execute the builtins by the shellwosch1998-05-121-1/+50
| | | | | | | and not directly by make(1). PR: bin/6550 Submitted by: Theo de Raadt <deraadt@cvs.openbsd.org & wosch
* Use historically correct error message in some cases, optionally.imp1998-04-281-2/+11
|
* When all transformation rules to or from a suffix disappeared, make triesphk1998-04-261-21/+7
| | | | | | | | | | to free the suffix. I think, it is a very strange idea. (Or, maybe, it is a POSIX requirement?) And it is done incorrectly. Apparently, it even don't update the list of known suffixes (but it is an other bug). PR: 4254, 4692, 4783 Reviewed by: phk Submitted by: Dmitrij Tejblum <dima@tejblum.dnttm.rssi.ru>
* Cleanup: fix a few typos, fit ASCII output onto an 80-column terminaljraynard1997-11-231-16/+16
| | | | and use a fixed font which actually exists.
* Add #include <stdlib.h> to pick up prototypes for getenv and friends.imp1997-09-292-2/+4
|
* Don't preferentially execute Makefiles in ${OBJDIR} - it just causesjkh1997-08-271-4/+3
| | | | | confusion and suffering. Tested by "make world". Submitted by: gibbs
* Make explicit '-B' option propigate to submakes.fsmp1997-08-251-1/+2
| | | | | | | | | No one has said this would be a bad thing, so given the dearth of comments I decided to add it, as its an important step towards getting "make world" 'parallel-ized'. Reviewed by: silence Submitted by: nnd@itfs.nsk.su
* Better fix, as originally submitted by reporter.fsmp1997-08-141-9/+10
| | | | Submitted by: N.Dudorov <nnd@itfs.nsk.su>
* Fix PR bin/4291: /usr/bin/make - inconsistent -j<n> flag parsing.fsmp1997-08-141-8/+8
| | | | Submitted by: N.Dudorov <nnd@itfs.nsk.su>
* Use err(3). Cosmetic in usage string.charnier1997-07-243-33/+27
|
* In these XXX MHz days, waiting 500ms for a process to do something isphk1997-04-211-2/+2
| | | | | | really far too long. Let us try 100ms instead, if you have a PP200, maybe that's even too long. This should speed up make -j# builds. I wonder why SIGCHLD isn't used...
* compare return value from getopt against -1 rather than EOF, per the finalimp1997-03-291-2/+2
| | | | posix standard on the topic.
* Add reference to `PMake - A Tutorial'wosch1997-03-091-2/+7
|
* Add enviroment variable MAKEOBJDIRPREFIX, still undocumented exceptwosch1997-03-031-1/+2
| | | | in bsd.obj.mk.
* Revert $FreeBSD$ to $Id$peter1997-02-2258-58/+58
|
* Make the long-awaited change from $Id$ to $FreeBSD$jkh1997-01-1458-58/+58
| | | | | | | | This will make a number of things easier in the future, as well as (finally!) avoiding the Id-smashing problem which has plagued developers for so long. Boy, I'm glad we're not using sup anymore. This update would have been insane otherwise.
* Add a .POSIX directive. When the first non-commentsteve1996-11-031-1/+12
| | | | | | | line of a Makefile contains this directive, make(1) will enter a POSIX 1003.2 compliant mode. Submitted by: Joerg Wunsch <joerg@freebsd.org>
OpenPOWER on IntegriCloud