summaryrefslogtreecommitdiffstats
path: root/usr.bin/make
Commit message (Collapse)AuthorAgeFilesLines
* 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>
* Remove extraneous comment, fix second-level tabs (onesteve1996-10-121-9/+3
| | | | | | | tab and four spaces), and return error message in *err instead of calling Parse_Error. Suggested by: Bruce Evans <bde@zeta.org.au>
* Removed extra $Id$ string.steve1996-10-111-3/+1
|
* Reinstate '!=' fix by Bruce Evans. The original commit message fromsteve1996-10-111-5/+11
| | | | | | | | | | | parse.c(1.9) was: revision 1.9 date: 1996/09/12 03:03:25; author: bde; state: Exp; lines: +7 -6 Fixed handling of `!=' assignment. Don't warn if the shell's output is null, but warn if there was an error reading it. Suggested by: Bruce Evans <bde@zeta.org.au>
* O' to be bitten by CVS. Cleanup after importsteve1996-10-0857-101/+99
| | | | | | of Christos' version of make(1) and add Id's. Set straight by: Bruce Evans and Peter Wemm :)
* This commit was generated by cvs2svn to compensate for changes in r18764,steve1996-10-0611-8/+103
|\ | | | | | | which included commits to RCS files with non-trunk default branches.
| * Import Christos Zoulas' version of NetBSD's make onto thesteve1996-10-0660-1629/+2914
| | | | | | | | | | | | vendor branch for reference. Obtained from: Christos Zoulas <christos@netbsd.org>
* | Clarify the rule used to determine the objectsteve1996-10-061-5/+9
| | | | | | | | directory location.
* | This commit was generated by cvs2svn to compensate for changes in r18756,peter1996-10-068-8/+8
|\ \ | |/ | | | | which included commits to RCS files with non-trunk default branches.
| * Import the 4.4BSD-Lite2 version of make onto the vendor branchpeter1996-10-0656-779/+1604
| | | | | | | | | | "for reference". This doesn't change anything since all files have been touched.
| * This commit was manufactured by cvs2svn to create branch 'CHRISTOS'.cvs2svn1996-10-061-0/+349
| |
* | Correct problem with traversing into PSD.doc directory,steve1996-10-061-5/+1
| | | | | | | | | | | | | | these files are actually installed/built as part of src/share/doc/psd/12.make. Oops. :) Pointed out by: Peter Wemm and Bruce Evans
* | Correct merge bogon: You want to descend into PSD.doc for both `all' andjkh1996-10-061-2/+2
| | | | | | | | | | `install' cases or there's never anything made to install, and you blow up in the install. :-)
* | Merge in NetBSD's changes to make(1). Changes include:steve1996-10-0631-1042/+2230
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Add the .PHONY, .PARALLEL, and .WAIT directives - Added the -B and -m commandline flags - misc. man page cleanups - numerous job-related enhancements - removed unused header file (bit.h) - add util.c for functions not found in other envs. - and a few coordinated whitespace changes Special thanks to Christos Zoulas <christos@netbsd.org> for help in the merge. A 'diff -ur' between Net and FreeBSD now only contains sccsid-related diffs. :) Obtained from: NetBSD, christos@netbsd.org, and me
* | delete doubled words, e.g.: "the the" -> "the"wosch1996-10-051-1/+2
| |
* | Fix for PR# 1231, make(1) execution of ``.BEGIN'' doessteve1996-09-252-2/+4
| | | | | | | | | | | | | | | | | | not halt on error. Thanks to Wolfram for reminding me. ;) Also remove a unnecessary test for c == '\n', since the loop (in ParseSkipLine) will not terminate unless c == '\n' || c == EOF, and the EOF case is already explicted handled by a return statement.
* | Be sure to remove any newlines encountered whensteve1996-09-231-1/+2
| | | | | | | | parsing the input file in ParseSkipLine(...).
* | Fix for PR# 1095, make's continuation line handling buggysteve1996-09-223-45/+61
| | | | | | | | | | | | | | when used with .elif. Additional fixes include: - fix continuation line handling when using .for - plug up a memory leak
* | Fix for PR#1230, make ``.for'' loops iterate backwards.steve1996-09-211-1/+1
| |
* | Restore previous compatibility of ${.CURDIR}/obj.`uname -m` andswallace1996-09-182-30/+67
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | $(.CURDIR}/obj search while retaining compatability of new prefix with cwd for the current source tree builds. .TARGETOBJDIR has been removed from make and CANONICALOBJDIR set in bsd.obj.mk The builtin object directory searching is defined specifically as: If MAKEOBJDIRPREFIX is defined, the search order is ${MAKEOBJDIRPREFIX}${.CURDIR} ${.CURDIR} Else if MAKEOBJDIR is defined, the search order is ${MAKEOBJDIR} ${.CURDIR} Otherwise, default to the search order ${.CURDIR}/obj.`uname -m` $(.CURDIR}/obj /usr/obj${.CURDIR} ${.CURDIR} Reviewed by: bde
* | Fixed handling of `!=' assignment. Don't warn if the shell's output isbde1996-09-121-6/+7
| | | | | | | | null, but warn if there was an error reading it.
OpenPOWER on IntegriCloud