aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/make
Commit message (Collapse)AuthorAgeFilesLines
* Note that sys.mk is read before any other file (even Makefile)David E. O'Brien2001-05-231-1/+4
| | | | Notes: svn path=/head/; revision=77054
* By default build make(1) as a static binary. It costs only 100k of additionalMaxim Sobolev2001-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 Notes: svn path=/head/; revision=76801
* mdoc(7) police: remove hard sentence breaks.Dima Dorfman2001-04-301-16/+32
| | | | Notes: svn path=/head/; revision=76163
* Remove GCC-ism (-Wall).Will Andrews2001-04-261-1/+1
| | | | | | | Submitted by: bde Notes: svn path=/head/; revision=76012
* Add -Wall.Ruslan Ermilov2001-04-251-1/+1
| | | | Notes: svn path=/head/; revision=75976
* -Wall cleanup.Ruslan Ermilov2001-04-251-1/+2
| | | | Notes: svn path=/head/; revision=75975
* unifdef -UWANT_ENV_PWD.Ruslan Ermilov2001-04-252-42/+13
| | | | | | | No one ever going to use this bugfeature. Notes: svn path=/head/; revision=75974
* Make ${.OBJDIR} canonical.Ruslan Ermilov2001-04-251-10/+2
| | | | | | | Reviewed by: bde Notes: svn path=/head/; revision=75973
* with my mentor hat on...Bill Fumerola2001-03-151-2/+0
| | | | | | | | | remove the concept of a 'maintainer' of our make. there really isn't a need for any one committer to hold an exclusive lock or serve as a filter for this code. Notes: svn path=/head/; revision=74294
* Revert previous change -- apparently it's not quite right. It brokeWill Andrews2001-03-151-15/+9
| | | | | | | | | | | | | src/sys/modules/if_ef and possibly other things. I tested the build with a make based on rev. 1.26, and it worked fine. Since I'm not particularly inclined to figure out what's going on with this, it's probably prudent just to back it out for now. Found by: jkh Suggested by: jhay Notes: svn path=/head/; revision=74293
* Fix make(1) bug: nested comments may be placed in .if, .else .if, andWill Andrews2001-03-151-9/+15
| | | | | | | | | | | | | | | | .endif statements but can't be placed in .elif. Basically, the problem was that ParseSkipLine() didn't handle comments the same way that ParseReadLine() did, and thus you had errors with comments that are on a conditional line (i.e. "^.") rather than a non-conditional line. MFC candidate for 4.3-STABLE and 3.5-STABLE. PR: 25627 Bug found by: jhs Fix submitted by: Seth Kingsley <sethk@osd.bsdi.com> (thanks!!) Notes: svn path=/head/; revision=74272
* Fix two bugs in null suffix handling. Both occured only after the suffixThomas Moestl2001-03-081-6/+19
| | | | | | | | | | | | | | | list was cleared. Rules with null suffixes would not be rebuilt when the suffixes were added again. Adding null suffix rules would fail when a rule for the same source was declared before the suffix list was cleared. PR: 23328, 24102 Reviewed by: will Approved by: rwatson Notes: svn path=/head/; revision=73970
* Include -DDEFSHELL=1 in Makefile.dist so people boostrapping willWarner Losh2001-03-011-1/+2
| | | | | | | | | | | have a sane default. Also add $FreeBSD$ while I'm here. Pointed out by: bde Notes: svn path=/head/; revision=73265
* MAXPATHLEN includes the trailing NUL.Warner Losh2001-03-012-6/+6
| | | | | | | | | | Correct array sizes to reflect this. Correct NUL termination after strncpy. # Didn't to strncpy -> strlcpy change. Notes: svn path=/head/; revision=73262
* Introduce support for using OpenSSL ASM optimizations. This is doneKris Kennaway2001-02-191-0/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | through the use of a new build directive, MACHINE_CPU, which contains a list of the CPU generations/features for which optimizations are desired. This feature will be extended to cover the ports tree in the future. Currently OpenSSL provides optimizations for i386, i586 and i686-class CPUs. Currently it has not been tested on an i386 or i486. Teach make(1) to provide sensible defaults for MACHINE_CPU if it is not defined (namely, the lowest common denominator CPU we support for each architecture). Currently this is i386 for the i386 architecture and ev4 for the alpha. sys.mk also sets the variable as a last resort for consistency with MACHINE_ARCH and bootstrapping from very old versions of make. Benchmarks show a significant speed increase even in the i386 case, with additional improvements for i586 and i686 systems. For maximum performance define MACHINE_CPU=i686 i586 i386 in /etc/make.conf. Based on a patch submitted by: Mike Silbersack <silby@silby.com> Reviewed by: current Notes: svn path=/head/; revision=72679
* Preceed/preceeding are not english words. Use precede and preceding.Jeroen Ruigrok van der Werven2001-02-186-7/+7
| | | | Notes: svn path=/head/; revision=72645
* Uname is in section 3 of the manual pages.David Malone2001-02-111-1/+1
| | | | | | | | PR: 25008 Submitted by: fullermd@over-yonder.net Notes: svn path=/head/; revision=72371
* Fix nasty bug where make(1) assumed that you could read the directory itWill Andrews2001-02-101-0/+2
| | | | | | | | | | | | was in. This shall be MFC'd in about three days (probably not a good idea to MFC the stylistic changes though - see below). PR: 19978 Submitted by: Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at> Patch by: roam (slightly modified by me to use NULL not NIL) Notes: svn path=/head/; revision=72310
* mdoc(7) police: split punctuation characters + misc fixes.Ruslan Ermilov2001-02-011-13/+6
| | | | Notes: svn path=/head/; revision=71895
* Fix style(9) bug; use ISDOT[DOT,]() macro available in util.c by movingWill Andrews2001-01-213-11/+9
| | | | | | | | | | it to make.h so both dir.c and util.c can use it, although bde didn't particularly like this part of the idea, IMO it's cleaner than it was. Submitted by: bde Notes: svn path=/head/; revision=71325
* Prepare for mdoc(7)NG.Ruslan Ermilov2001-01-161-2/+2
| | | | Notes: svn path=/head/; revision=71102
* Fix for the case where the first two entries returned by readdir() areWill Andrews2000-12-261-6/+12
| | | | | | | | | | | | | | | actually NOT '.' and '..'. Apparently this isn't the case when accessing a directory via XFS over NFS on SGI systems. Since I don't have access to an environment like that, this will sit out in -current for at least six weeks. However, the patch proposed by the submitter seems acceptable, so I've decided to commit it to the tree, in the hope that it will solve some problems without bringing up others. PR: 23300 Submitted by: Jim Pirzyk <Jim.Pirzyk@disney.com> Notes: svn path=/head/; revision=70358
* Prepare for mdoc(7)NG.Ruslan Ermilov2000-12-191-10/+11
| | | | Notes: svn path=/head/; revision=70197
* Fix a bug introduced in rev. 1.17: initialize variables before use, not after.Dag-Erling Smørgrav2000-12-161-1/+1
| | | | | | | | Rev. 1.17 was "Obtained from NetBSD", but is significantly different from the equivalent NetBSD revision (rev. 1.30), which does not have this bug. Notes: svn path=/head/; revision=70080
* There's also no point in #typedef'ing void/char pointers. Accordingly,Will Andrews2000-12-0236-512/+472
| | | | | | | | | rip out ClientData/Address pointers and use standard types. Obtained from: OpenBSD Notes: svn path=/head/; revision=69531
* There's no reason to use fancy forms of NULL. Replace all instancesWill Andrews2000-12-0238-238/+224
| | | | | | | | | of NIL, NILLST, NILLGNODE, etc. with NULL. Obtained from: OpenBSD Notes: svn path=/head/; revision=69527
* Format string paranoia. This should avoid potential buffer overflows fromWill Andrews2000-11-303-13/+29
| | | | | | | | | user input (in its ever-broadening definition). Obtained from: NetBSD Notes: svn path=/head/; revision=69390
* Xref make.conf(5), and point to /usr/share/doc/psd/12.make for theNik Clayton2000-11-291-1/+4
| | | | | | | tutorial paper. Notes: svn path=/head/; revision=69355
* Reimplement the groff(1) warnings elimination fixes in a better way.Ruslan Ermilov2000-11-242-10/+5
| | | | Notes: svn path=/head/; revision=69107
* Eliminate groff(1) warnings.Ruslan Ermilov2000-11-232-2/+20
| | | | Notes: svn path=/head/; revision=69095
* mdoc(7) police: use the new features of the Nm macro.Ruslan Ermilov2000-11-201-13/+13
| | | | Notes: svn path=/head/; revision=68963
* Unlink the temporary file immediately so it is removed on exit.Kris Kennaway2000-11-191-19/+15
| | | | | | | Obtained from: OpenBSD Notes: svn path=/head/; revision=68898
* Add :L and :U variable modifiers. These convert the variable's value toWill Andrews2000-10-092-0/+38
| | | | | | | | | | | | all-lower or all-upper case characters, respectively. These were added to further reduce differences between NetBSD/OpenBSD and FreeBSD make(1) to propagate OpenPackages. PR: 19959 Submitted by: Gaspar Chilingarav <nm@web.am> Notes: svn path=/head/; revision=66854
* Add :C/// variable modifier, which is similar to :S/// in functionalityWill Andrews2000-10-092-0/+414
| | | | | | | | | | | | | | | | | but allows for regex. I removed NO_REGEX since no one could give a reason to have it, and since we don't use make in bootstrap tools, it's not needed. This is mostly added to synch up with NetBSD/OpenBSD so as to eliminate roadblocks in the OpenPackages project (see http://www.openpackages.org/). It's also quite useful, and costs us only about 3 kilobytes of space. PR: 21605 Submitted by: Hubert Feyrer <hubertf@NetBSD.org> Reviewed by: silence on -arch Obtained from: NetBSD Notes: svn path=/head/; revision=66853
* Assume MAINTAINER. I will be taking the job of merging NetBSD/OpenBSDWill Andrews2000-09-291-0/+2
| | | | | | | | | | improvements (including :C & :L, among others). After that, I'll be coming up with other ways to improve make(1). Discussed in spirit with: peter Notes: svn path=/head/; revision=66465
* *** empty log message ***Peter Wemm2000-09-252-12/+28
| | | | Notes: svn path=/head/; revision=66365
* Remove gratuitous free() call when we use special .SHELL target.Ruslan Ermilov2000-08-181-5/+0
| | | | Notes: svn path=/head/; revision=64823
* Allow use of the ${MAKE_SHELL} variable to specify alternate shells forBrian Feldman2000-08-164-2/+39
| | | | | | | | make(1) to use. Setting it to "sh" and "ksh" are the only values which work right ATM; I wouldn't expect "csh" to get you far ;) Notes: svn path=/head/; revision=64739
* Do include <unistd.h> for getopt interface.Warner Losh2000-07-281-2/+1
| | | | | | | Don't extern it. Notes: svn path=/head/; revision=63955
* Use pwd instead of cwd in backticks. cwd in backticks doesn't doSheldon Hearn2000-07-171-2/+2
| | | | | | | | | | anything useful in a Bourne shell. PR: 19980 Submitted by: Alex Kapranoff <alex@kapran.bitmcnit.bryansk.su> Notes: svn path=/head/; revision=63317
* Fix assembler error messages - there is no \n allowed in __COPYRIGHT macroAndrey A. Chernov2000-07-091-2/+1
| | | | Notes: svn path=/head/; revision=62835
* Use __RCSID()Wilfredo Sanchez2000-07-0916-100/+67
| | | | Notes: svn path=/head/; revision=62833
* Use __RCSID()Wilfredo Sanchez2000-07-0927-56/+82
| | | | Notes: svn path=/head/; revision=62831
* Initialize variableWilfredo Sanchez2000-07-091-1/+1
| | | | Notes: svn path=/head/; revision=62830
* Update make(1) manpage to include information about the new loudWill Andrews2000-05-141-0/+3
| | | | | | | debugging facility I introduced earlier today. Notes: svn path=/head/; revision=60570
* Add loud debugging facility (-dl option) which allows programmers/developersWill Andrews2000-05-144-2/+6
| | | | | | | | | | | | | | | to override @-prefixed commands in Makefiles. It is especially useful for debugging ports and/or complex Makefiles in such a manner that is basically a last resort, but is quite effective if the output is well-handled. I'll update the manpage after dinner. ;-) Better patch submitted by: steve Reviewed by: phk, steve, chuckr, obrien, Lyndon Nerenberg <lyndon@orthanc.ab.ca> Notes: svn path=/head/; revision=60569
* #include <errno.h> where needed. Kill extern int errno;.Warner Losh2000-04-142-5/+1
| | | | | | | Minor warnings in tip corrected. Notes: svn path=/head/; revision=59217
* Remove single-space hard sentence breaks. These degrade the qualitySheldon Hearn2000-03-011-10/+20
| | | | | | | | of the typeset output, tend to make diffs harder to read and provide bad examples for new-comers to mdoc. Notes: svn path=/head/; revision=57670
* Fix errors in .Xr usage.Nik Clayton2000-03-011-1/+1
| | | | | | | | PR: docs/17057 Submitted by: Submitted by: Udo Erdelhoff <ue@nathan.ruhr.de> Notes: svn path=/head/; revision=57666
* ${.MAKE} -> ${MAKE}Ruslan Ermilov2000-01-191-1/+1
| | | | | | | Reviewed by: hoek Notes: svn path=/head/; revision=56280