summaryrefslogtreecommitdiffstats
path: root/usr.bin/make
Commit message (Collapse)AuthorAgeFilesLines
* 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
* Make ReadMakefile() operate using the realpath(3) name for the file handed tojmallett2002-05-211-3/+7
| | | | | | | | | | | | | | | | | | it, which means that relative paths will be expanded to absolute paths, and filenames without a path will end up with their absolute path included as well. This aids tremendously in debugging a build using our make(1) with multiple Makefile's, such as when there is a syntax error in a file in a sub-directory as per <bsd.subdir.mk>. Normally we'd end up with just "Makefile" known about the Makefile in question, which means that an error would be useless for someone trying to debug their build system, now we end up with a complete real pathname for the Makefile. So mostly this is useful in a debugging context, but possibly others too (I haven't thought of them yet, but they probably are more useful if you make Dir_FindFile use realpath(3), but that's another story). Reviewed by: -current MFC after: 2 weeks
* More consistancy. file system > filesystemtrhodes2002-05-163-4/+4
|
* Fix make(1) behaviour regarding SysV-style substitution when given a niljmallett2002-05-051-0/+6
| | | | | | | | left-hand-side. PR: bin/5297 Submitted by: "Matthew Emmerton" <matt@gsicomp.on.ca> MFC after: 1 week
* Use `The .Nm utility'charnier2002-04-201-9/+15
|
* Move the sysV variable substitution up with the BSD feature that replaced it.obrien2002-04-191-2/+2
|
* Do not reset MAKEFILE when reading ".depend" as this ratherru2002-04-181-1/+6
| | | | | | | eliminates the usefulness of ${MAKEFILE}. Obtained from: NetBSD MFC after: 1 week
* Back out rev 1.17, it breaks dependencies.obrien2002-04-141-15/+11
| | | | | | | With rev 1.7 one cannot build src/bin/sh -- because make fails to create the buildtools before trying to use them. Actually it does compile the buildtools into .o's before trying to use them, but not all the way into binaries.
* Revision 1.17 seems to break a subsequent buildworld (i.e. with the newobrien2002-04-131-2/+5
| | | | | | | | | | | make installed) in gnu/usr.bin/groff/src/preproc/eqn (which, being a build tool itself, is built with the original make during buildworld). The problem seems to be that in str_concat(), the string is not terminated when the length of the second string is 0. This apparently can happen during null suffix rule processing. Submitted by: tmm
* Fix a minor lint warning.obrien2002-04-131-0/+2
|
* Prefer BSDmakefile over makefile and Makefile.obrien2002-04-135-7/+9
| | | | | Submitted by: jmallett Obtained from: OpenBSD
* Fix copyrights, and undo SCS ID damage.obrien2002-04-1321-30/+49
|
* Update SCM ID method.obrien2002-04-1315-44/+16
|
* Make str_concat handle NULL arguments properly (a-la how ODE-2.3.6 make does).obrien2002-04-131-12/+13
| | | | | Submitted by: jmallett Inspired by: CMU BUILDTOOLS4 coredumping, ODE-2.3.6 make(1)
* De'register.obrien2002-04-1314-129/+128
|
* Constify str_concat()obrien2002-04-131-3/+3
| | | | Submitted by: jmallett
* Check to make sure fdopen() succeeds in make(1).obrien2002-04-131-0/+2
| | | | | Submitted by: jmallett Inspired by: NetBSD
* Un.Ar makefile. The add of .Ar was part of my last commit.charnier2002-04-121-3/+1
| | | | Asked by: ru
* Reorder #include. Cast arg #2 of lseek to an off_t when constant. No need tocharnier2002-04-123-31/+27
| | | | | | | test if failsafe memory allocation fails, it can't. perror -> warn. Use failsafe memory allocation provided. Use .Pa and .Ar. Uppercase (first letter) programname after dot.
* o unifdef -D__STDC__imp2002-03-236-412/+5
| | | | | o remove badly bit-rotted compat file that likely won't work on the systems it purports to support.
* remove __Pimp2002-03-2226-336/+303
|
* make(1) claims to ignore the remainder of a conditional once its valuecjc2002-02-201-1/+1
| | | | | | | | | | | | | | | | | | has been determined similar to C. That is, one expects a construction like, .if defined(TEST) && (${TEST:L} == "test") Never to generate an error since the second expression should never be evaluated when TEST is undefined. However, this was not the case. The above fails with the current make(1) if TEST is undefined. This patch fixes the above and many similar cases. PR: bin/34032 Submitted by: Alan Eldridge <alane@geeksrus.net> MFC after: 1 week
* Make substitutions in internal macros like $(@F:.o=.c) work.schweikh2002-01-121-1/+1
| | | | | | | | | | | | | This should not affect our build process, as find /usr/src -name Makefile | xargs grep '@[DF]' has no matches (other than FreeBSD.org email addresses :-) PR: bin/24377 Submitted by: Mark Valentine <mark@thuvia.demon.co.uk> Reviewed by: Matthew Emmerton <matt@gsicomp.on.ca> MFC after: 4 weeks
* mdoc(7) police: protect trailing full stops of abbreviationsru2001-08-101-1/+1
| | | | with a trailing zero-width space: `e.g.\&'.
* Use STD{ERR,IN,OUT}_FILENO instead of their numeric values. Thesheldonh2001-07-263-6/+9
| | | | | | | definitions are more readable, and it's possible that they're more portable to pathalogical platforms. Submitted by: David Hill <david@phobia.ms>
* Clarify that MAKEOBJDIR and MAKEOBJDIRPREFIX are environment variables.ru2001-07-161-1/+1
| | | | Submitted by: bde
* Remove whitespace at EOL.dd2001-07-151-2/+2
|
* Note that sys.mk is read before any other file (even Makefile)obrien2001-05-231-1/+4
|
* By default build make(1) as a static binary. It costs only 100k of additionalsobomax2001-05-181-0/+2
| | | | | | | disk space, buf provides measureable speed increase for make-intensive operations, such as pkg_version(1), `make world' and so on. MFC after: 1 week
OpenPOWER on IntegriCloud