aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/make
Commit message (Collapse)AuthorAgeFilesLines
* Remove old fmake. It wasn't built by default for some time. Users thatWarner Losh2015-06-1645-23948/+0
| | | | | | | | | | really need it can find it in the devel/fmake port or pkg install fmake. Note: This commit is orthogonal to the question 'can we fmake buildworld'. Differential Revision: https://reviews.freebsd.org/D2840 Notes: svn path=/head/; revision=284464
* Add META_MODE support.Simon J. Gerraty2015-06-131-0/+19
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | Off by default, build behaves normally. WITH_META_MODE we get auto objdir creation, the ability to start build from anywhere in the tree. Still need to add real targets under targets/ to build packages. Differential Revision: D2796 Reviewed by: brooks imp Notes: svn path=/head/; revision=284345
| * Merge sync of headSimon J. Gerraty2015-05-271-1/+1
| |\ | |/ |/| | | Notes: svn path=/projects/bmake/; revision=283595
| * Merge head from 7/28Simon J. Gerraty2014-08-19321-2778/+1
| |\ | | | | | | | | | Notes: svn path=/projects/bmake/; revision=270164
| * \ Merge from headSimon J. Gerraty2014-05-081-3/+1
| |\ \ | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=265720
| * \ \ Merge headSimon J. Gerraty2014-04-28322-5/+2779
| |\ \ \ | | | | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=265044
| * \ \ \ Merge from headSimon J. Gerraty2013-09-052-2/+9
| |\ \ \ \ | | | | | | | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=255263
| * \ \ \ \ Sync with HEAD.David E. O'Brien2013-02-081-1/+1
| |\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=246555
| * \ \ \ \ \ Sync from headSimon J. Gerraty2012-11-041-1/+2
| |\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=242545
| * | | | | | | Sync FreeBSD's bmake branch with Juniper's internal bmake branch.Marcel Moolenaar2012-08-221-0/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Requested by: Simon Gerraty <sjg@juniper.net> Notes: svn path=/projects/bmake/; revision=239572
| * | | | | | | MFC: r237282: version typoDavid E. O'Brien2012-06-201-1/+1
| |\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=237283
| | * | | | | | | Import the 6-May-2012 release of the "Portable" BSD make tool (from NetBSD).vendor/NetBSD/bmake/20120606David E. O'Brien2012-06-0861-27495/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Submitted by: sjg@juniper.net Notes: svn path=/vendor/NetBSD/bmake/dist/; revision=236769 svn path=/vendor/NetBSD/bmake/20120606/; revision=236770; tag=vendor/NetBSD/bmake/20120606
| | * | | | | | | Finish importing Lite2's src/usr.bin, except for ex, diff, grep, mail,Bruce Evans1997-07-0657-2864/+1627
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | pascal and vmstat.sparc. All changed files on the vendor branch should already have been imported. Notes: svn path=/cvs2svn/branches/CHRISTOS/; revision=27241
* | | | | | | | | Add a ${CP} alias for copying files in the build.Will Andrews2015-01-161-1/+1
| |_|_|_|_|_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Some users build FreeBSD as non-root in Perforce workspaces. By default, Perforce sets files read-only unless they're explicitly being edited. As a result, the -f argument must be used to cp in order to override the read-only flag when copying source files to object directories. Bare use of 'cp' should be avoided in the future. Update all current users of 'cp' in the src tree. Reviewed by: emaste MFC after: 1 week Sponsored by: Spectra Logic Notes: svn path=/head/; revision=277273
* | | | | | | | When producing fmake(1), `make clean' should remove fmake.1 (a copy ofDevin Teske2014-07-231-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | make.1). Introduced initially via SVN r250699 (sjg). Reviewed by: sjg, gjb MFC after: 3 days X-MFC-to: stable/10 Notes: svn path=/head/; revision=269037
* | | | | | | | Move old fmake tests into bmake and hook them to the build.Julio Merino2014-05-14321-2778/+0
| |_|_|_|_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This first step is mostly to prevent the code from rotting even further and to ensure these do not get wiped when fmake's code is removed from the tree. These tests are currently being skipped because they detect the underlying make is not fmake and thus disable themselves -- and the reason is that some of the tests fail, possibly due to legitimate bugs. Enabling them to run against bmake will come separately. Lastly, it would be ideal if these tests were fed upstream but they are not ready for that yet. In the interim, just put them under usr.bin/bmake/ while we sort things out. The existence of a different unit-tests directory within here makes me feel less guilty about this. Change confirmed working with a clean amd64 build. Notes: svn path=/head/; revision=266074
* | | | | | | Remove support for WITHOUT_BMAKE. bmake is now the only make that canWarner Losh2014-05-061-2/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | build world, so it is the only make we build or install. fmake is still in the tree, but disconnected, and upgrades from older systems that still have bmake has not been removed, but its state has not been tested (it should work given how minimal the work to upgrade to bmake is). Notes: svn path=/head/; revision=265423
* | | | | | | Use src.opts.mk in preference to bsd.own.mk except where we need stuffWarner Losh2014-05-061-1/+1
| |_|_|_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | from the latter. Notes: svn path=/head/; revision=265420
* | | | | | Add Makefiles missed in r263346.Julio Merino2014-03-1949-0/+659
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Grrr, I wish svn clearly displayed files not yet added when about to commit. Notes: svn path=/head/; revision=263348
* | | | | | Migrate tools/regression/usr.bin/make/ to the new tests layout.Julio Merino2014-03-19272-0/+2119
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Note that these tests are for fmake, not bmake, and thus they are not installed nor run when bmake is selected (the default). Yes, I have wasted a *ton* of time on moving tests for no real reason other than ensuring they are not left behind. But maybe, just maybe, it was not work in vain: the majority of these tests also work with bmake and the few that don't may point at broken stuff. For example, the tests for the "archive" feature do not work with bmake, but bmake's manpage and source tree seem to imply that they should. So... to be investigated later; need to poke sjg@. Notes: svn path=/head/; revision=263346
* | | | | | multiple: Remove 3rd clause from BSD license where approved by theEitan Adler2014-03-141-5/+1
| |_|_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | regents and renumber. This patch skips files in contrib/ and crypto/ Acked by: imp Discussed with: emaste Notes: svn path=/head/; revision=263142
* | | | | Remove unnecessary cast to pid_t.Kevin Lo2013-07-041-2/+2
| | | | | | | | | | | | | | | | | | | | Notes: svn path=/head/; revision=252679
* | | | | Reverse the sense of the test wrt bmake, and guard againstSimon J. Gerraty2013-05-161-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | MK_BMAKE not being defined. Notes: svn path=/head/; revision=250719
* | | | | Build bmake by default.Simon J. Gerraty2013-05-161-0/+7
| |_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If someone explicitly builds usr.bin/make while MK_BMAKE==yes, install it as 'fmake'. Reviewed by: brooks Notes: svn path=/head/; revision=250699
* | | | Remove fictitious support for 80386-class CPUs from bsd.cpu.mk and make(1).Jung-uk Kim2012-12-031-1/+1
| |_|/ |/| | | | | | | | | | | | | | | | | | | | | | | It was removed from head more than 8 years ago (see r137784 and r137785). Reviewed by: imp, delphij, dim Notes: svn path=/head/; revision=243831
* | | make: report :M or :N pattern in debug modeAndriy Gapon2012-10-061-0/+1
| | | | | | | | | | | | | | | | | | | | | MFC after: 12 days Notes: svn path=/head/; revision=241280
* | | In usr.bin/make/var.c, function ParseModifier(), initialize the 'error'Dimitry Andric2012-08-051-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | variable to NULL, to avoid using it uninitialized in certain cases. This fixes the following clang 3.2 warning: usr.bin/make/var.c:1770:10: error: variable 'error' is used uninitialized whenever 'if' condition is false [-Werror,-Wsometimes-uninitialized] if (vp->execute) { ^~~~~~~~~~~ usr.bin/make/var.c:1777:10: note: uninitialized use occurs here if (error) ^~~~~ usr.bin/make/var.c:1770:6: note: remove the 'if' if its condition is always true if (vp->execute) { ^~~~~~~~~~~~~~~~~ usr.bin/make/var.c:1768:23: note: initialize the variable 'error' to silence this warning const char *error; ^ = NULL MFC after: 1 week Notes: svn path=/head/; revision=239071
* | | Correct typo in version.David E. O'Brien2012-06-201-1/+1
|/ / | | | | | | Notes: svn path=/head/; revision=237282
* | Update date for r236338 & r236346.David E. O'Brien2012-05-311-1/+1
| | | | | | | | Notes: svn path=/head/; revision=236365
* | Add "-V '${VAR}'" variable expansion from Portable Berkeley Make.David E. O'Brien2012-05-312-5/+14
| | | | | | | | | | | | | | Submitted by: Simon Gerraty <sjg@juniper.net> Notes: svn path=/head/; revision=236346
* | Deprecate the FreeBSD make's ":U" (to-upper case) and ":L" (to-lower case)David E. O'Brien2012-05-303-1/+35
| | | | | | | | | | | | | | | | | | | | modifiers for ":tu" and ":tl" from OSF's ODE, which made its way into NetBSD's make, which is the source for the Portable Berkeley Make. Submitted by: Simon Gerraty <sjg@juniper.net> Notes: svn path=/head/; revision=236338
* | Minor mdoc nits.Joel Dahl2012-05-131-1/+1
| | | | | | | | Notes: svn path=/head/; revision=235400
* | Make is part of the bootstrap path, so we need to guard against thisWarner Losh2012-05-091-1/+1
| | | | | | | | | | | | | | | | not being defined. Otherwise we don't make a new make when the old make is incompatible. Notes: svn path=/head/; revision=235152
* | Add src.conf option WITH_SHARED_TOOLCHAIN to enable building theKonstantin Belousov2012-04-291-0/+4
| | | | | | | | | | | | | | | | | | | | | | toolchain binaries as dynamically linked. Option is disabled by default. Reviewed by: ru (previous version) MFC after: 2 weeks Notes: svn path=/head/; revision=234782
* | Include target names in diagnostic output.Max Khon2012-02-121-8/+15
| | | | | | | | | | | | | | Submitted by: Garrett Cooper Notes: svn path=/head/; revision=231544
* | Map foreign architecture names to FreeBSD naming convention.Robert Millan2012-01-201-0/+17
| | | | | | | | | | | | | | Approved by: kib (mentor) Notes: svn path=/head/; revision=230392
* | Spelling fixes for usr.bin/Ulrich Spörlein2011-12-308-18/+18
| | | | | | | | Notes: svn path=/head/; revision=228992
* | Revert r228521: sometimes job output is lostMax Khon2011-12-152-10/+2
| | | | | | | | | | | | | | | | | | | | | | (see tools/regression/usr.bin/make/execution/joberr test). openpty(fd + 0, fd + 1,...) version does not have this problem but it sometimes enters an infinite sleep in "ttywait" state in tty_drain() when make(1) closes slave pty. Notes: svn path=/head/; revision=228525
* | job make: if stdout is a tty create a pty when running a command.Max Khon2011-12-152-2/+10
| | | | | | | | Notes: svn path=/head/; revision=228521
* | - Fix segmentation fault when running "+command" when run with -jX -n dueMax Khon2011-11-302-58/+51
| | | | | | | | | | | | | | | | | | | | | | | | | | | | to Compat_RunCommand() being called with `cmd' that is not on the node->commands list - Make ellipsis ("..." command) handling consistent: check for "..." command in job make after variables expansion to match compat make behavior - Fix empty command handling (after variables expansion and @+- modifiers are processed): now empty commands are ignored in compat make and are not printed in job make case - Bump MAKE_VERSION to 5-2011-11-30-0 Notes: svn path=/head/; revision=228157
* | Add missing static keywords to make(1)Ed Schouten2011-11-061-0/+1
| | | | | | | | Notes: svn path=/head/; revision=227172
* | make(1): obj dirs are physical paths so write `pwd -P` rather than `pwd`.Jilles Tjoelker2011-11-051-3/+3
| | | | | | | | | | | | | | | | Regular pwd may return a pathname containing symlinks, but make does not use such pathnames. Notes: svn path=/head/; revision=227121
* | Fix typos - remove duplicate "the".Rebecca Cran2011-02-211-1/+1
| | | | | | | | | | | | | | | | | | PR: bin/154928 Submitted by: Eitan Adler <lists at eitanadler.com> MFC after: 3 days Notes: svn path=/head/; revision=218909
* | Move most of the remaining USD/PSD/SMM papers into share/docUlrich Spörlein2010-12-042-3756/+0
| | | | | | | | Notes: svn path=/head/; revision=216178
* | Remove hack needed by 6.x machines and older machines to run newerWarner Losh2010-10-061-22/+1
| | | | | | | | | | | | | | | | | | makes on FreeBSD/pc98. The need for this hack has passed. If you are one of the rare people that may need this, then you should setenv MACHINE=pc98 as a workaround. Notes: svn path=/head/; revision=213494
* | Use more portable errx instead of errc. The latter doesn't buy usWarner Losh2010-10-061-4/+2
| | | | | | | | | | | | | | | | anyting anyway, since the error EAGAIN's error message doesn't add anything to the error strings that are there now. Notes: svn path=/head/; revision=213493
* | Remove extraneous ;Ed Maste2010-07-121-1/+1
| | | | | | | | Notes: svn path=/head/; revision=209951
* | - Missing full stopsChristian Brueffer2010-05-121-6/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | - Upper case the first character of an description - Section headings do not need to be quoted. From OpenBSD's make.1, revision 1.81 - Plural of suffix is suffixes. From OpenBSD's make.1, revision 1.61 - s/seperating/separating/ PR: 135165 Submitted by: Alan R. S. Bueno <alan.bsd@gmail.com> MFC after: 1 week Notes: svn path=/head/; revision=207948
* | Remove yet another vestage of alpha support.Warner Losh2010-04-061-2/+0
| | | | | | | | Notes: svn path=/head/; revision=206241
* | Eliminated nits from last commit.Ruslan Ermilov2010-01-271-15/+15
| | | | | | | | | | | | | | OK'ed by: rodrigc Notes: svn path=/head/; revision=203098