aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/make/Makefile
Commit message (Collapse)AuthorAgeFilesLines
* Remove old fmake. It wasn't built by default for some time. Users thatWarner Losh2015-06-161-120/+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 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-141-4/+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
* Migrate tools/regression/usr.bin/make/ to the new tests layout.Julio Merino2014-03-191-0/+4
| | | | | | | | | | | | | | | | 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
* 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
* Correct typo in version.David E. O'Brien2012-06-201-1/+1
| | | | Notes: svn path=/head/; revision=237282
* Deprecate the FreeBSD make's ":U" (to-upper case) and ":L" (to-lower case)David E. O'Brien2012-05-301-1/+1
| | | | | | | | | | 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
* 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
* Revert r228521: sometimes job output is lostMax Khon2011-12-151-2/+0
| | | | | | | | | | | (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-151-0/+2
| | | | Notes: svn path=/head/; revision=228521
* - Fix segmentation fault when running "+command" when run with -jX -n dueMax Khon2011-11-301-1/+3
| | | | | | | | | | | | | | 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
* Build usr.bin/ with WARNS=6 by default.Ed Schouten2010-01-021-1/+0
| | | | | | | Also add some missing $FreeBSD$ to keep svn happy. Notes: svn path=/head/; revision=201386
* Remove inlining of functions that are used mostly in different object files.Roman Divacky2009-01-201-1/+0
| | | | | | | | | | | This gets rid of gnu89 style inlining. Also silence gcc by assigning two variables NULL. This lets use to remove NO_WERROR. Approved by: kib (mentor) Approved by: harti Notes: svn path=/head/; revision=187475
* No need to tell make to DTRT with "make love", just do it.David E. O'Brien2008-03-041-5/+0
| | | | | | | | Also remove the 2002/08/31 bootstrapping aid for upgrades from year old (mid-2001) systems. Notes: svn path=/head/; revision=176807
* So, what's it supposed to say when you type "make love"?Ruslan Ermilov2006-05-111-0/+1
| | | | Notes: svn path=/head/; revision=158452
* Please ship the pointy hat to its home position.Poul-Henning Kamp2005-09-261-2/+0
| | | | Notes: svn path=/head/; revision=150601
* Update coordinates for "mph" hash generator now that it lives in ports.Poul-Henning Kamp2005-09-261-1/+1
| | | | Notes: svn path=/head/; revision=150598
* Add a .sinclude directive which does the exact same as .include, exceptPoul-Henning Kamp2005-09-261-0/+2
| | | | | | | whine when the file cannot be found and opened. Notes: svn path=/head/; revision=150595
* Document why there is a dependency of certain object files from theHartmut Brandt2005-05-251-0/+6
| | | | | | | | | Makefile. Requested by: ru Notes: svn path=/head/; revision=146608
* Make shell.o dependend on the Makefile just in case someone changesHartmut Brandt2005-05-241-1/+1
| | | | | | | the default shell in the Makefile. Notes: svn path=/head/; revision=146579
* Bump the warning level to 6.Hartmut Brandt2005-05-241-1/+1
| | | | Notes: svn path=/head/; revision=146578
* Factor out ProcExec() into its own file and rename it to Proc_Exec() forHartmut Brandt2005-05-241-2/+2
| | | | | | | | | consistency with the rest of make. Obtained from: DragonFlyBSD (except for the rename) Notes: svn path=/head/; revision=146574
* Factor out all the .SHELL parsing related stuff into its own file andHartmut Brandt2005-05-241-1/+2
| | | | | | | | | | rename the function to be consistent with the naming scheme in the rest of make. No functional changes. Obtained from: DragonFlyBSD (idea and most of shell.h) Notes: svn path=/head/; revision=146572
* Use the name of the default shell instead of a numeric index to selectHartmut Brandt2005-05-241-6/+2
| | | | | | | | | the default shell. Idea from: DragonFlyBSD Notes: svn path=/head/; revision=146571
* Still too early to bump WARNS - there are still warnings on 64bitHartmut Brandt2005-05-121-1/+1
| | | | | | | architectures. Notes: svn path=/head/; revision=146158
* Use a variable initialized to a string instead of the string directlyHartmut Brandt2005-05-121-1/+1
| | | | | | | | | to get rid of a const warning. Submitted by: Max Okumoto <okumoto@ucsd.edu> (7.244) Notes: svn path=/head/; revision=146154
* Revert the previous accidential commit.Hartmut Brandt2005-05-121-1/+1
| | | | Notes: svn path=/head/; revision=146150
* Cleanup SuffFindArchDeps() to get rid of two const-warnings.Hartmut Brandt2005-05-121-1/+1
| | | | | | | Submitted by: Max Okumoto <okumoto@ucsd.edu> (7.240) Notes: svn path=/head/; revision=146149
* Merge compat.c into job.c. There is a lot in common between theseHartmut Brandt2005-05-101-2/+2
| | | | | | | | | | files and we are going to factor this out. Patch: 7.199 (slightly changed) Submitted by: Max Okumoto <okumoto@ucsd.edu> Notes: svn path=/head/; revision=146056
* Merge var_modify.c into var.c and move types and function declarationsHartmut Brandt2005-05-101-2/+1
| | | | | | | | | | that are now used only in var.c from var.h to var.c Patches: 7.193,7.194 Submitted by: Max Okumoto <okumoto@ucsd.edu> Notes: svn path=/head/; revision=146045
* Rename the directive_hash.[ch] files to hash_tables.[ch] nowHartmut Brandt2005-04-291-5/+5
| | | | | | | | | | that there are more than one hash table in them. There is no history to preserve here, so go without a repo-copy. Asked for by: Max Okumoto <okumoto@ucsd.edu> Notes: svn path=/head/; revision=145683
* Use a minimal perfect hash for the special sources/targets too. AddHartmut Brandt2005-04-281-6/+25
| | | | | | | the corresponding magic to create the hash function to the Makefile. Notes: svn path=/head/; revision=145616
* Fix the $$FreeBSD$$ that should be written verbatim to directive_hash.cHartmut Brandt2005-04-281-1/+1
| | | | | | | so that it doesn't get replaced with the Makefile's revision. Notes: svn path=/head/; revision=145614
* Move the hash function for directives into its own file and addHartmut Brandt2005-04-281-2/+55
| | | | | | | | | | | | a Makefile target to re-created this file. Note, that there is no explicite dependency to automatically re-create the file, because this is needed only when the directive table changes and it requires the (yet to come) devel/mph port. Submitted by: Max Okumoto <okumoto@ucsd.edu> (first version) Notes: svn path=/head/; revision=145612
* Ups. Revert the last commits. These have been committed by accident.Hartmut Brandt2005-03-151-1/+1
| | | | Notes: svn path=/head/; revision=143657
* modifier_M: instead of going through the string twice to compute theHartmut Brandt2005-03-151-1/+1
| | | | | | | | | | | size of the buffer we need, just allocate the possible maximum. Patch: 7.117 Submitted by: Max Okumoto <okumoto@ucsd.edu> Notes: svn path=/head/; revision=143656
* While working on constification temporarily disable -Werror. Things are tooHartmut Brandt2005-02-091-0/+1
| | | | | | | twisted. Notes: svn path=/head/; revision=141573
* Move all the remaining list functions into one C-file and removeHartmut Brandt2005-02-011-5/+1
| | | | | | | | | | double documentation comments. Remove the 3rd clause (from 4) of the BSD license because these files have only the UCB copyright. Submitted by: Max Okumoto <okumoto@ucsd.edu> Notes: svn path=/head/; revision=141115
* NOSHARED -> NO_SHAREDRuslan Ermilov2004-12-211-1/+1
| | | | Notes: svn path=/head/; revision=139112
* Instead of dynamically allocating list heads allocated them staticallyHartmut Brandt2004-12-161-1/+1
| | | | | | | | | | | now that their size is only two pointers. This eliminates a lot of calls to Lst_Init and from there to malloc together with many calls to Lst_Destroy (in places where the list is obviously empty). This also reduces the chance to leave a list uninitilized so we can remove more NULL pointer checks and probably eliminates a couple of memory leaks. Notes: svn path=/head/; revision=138916
* Get rid of the sequential access feature of the lists. This was usedHartmut Brandt2004-12-081-2/+2
| | | | | | | | | | | only in a couple of places and all of them except for one were easily converted to use Lst_First/Lst_Succ. The one place is compatibility mode in job.c where the it was used to advance to the next command on each invocation of JobStart. For this case add a pointer to the node to hold the currently executed command. Notes: svn path=/head/; revision=138564
* Change a couple of the primitve list functions to be macros. This changesHartmut Brandt2004-11-301-5/+3
| | | | | | | | | the semantic of Lst_Datum which formerly returned NULL when the argument node was NULL. There was only one place in the source that relied on this so change that place. Notes: svn path=/head/; revision=138222
* Merge the contents of lstInt.h into the public lst.h. This let's us getHartmut Brandt2004-11-291-1/+1
| | | | | | | | | | rid of a lot of uneccesary casts and temporary variables that have just obfuscated the code. This also let's us implement a couple of the one- liner list functions as macros (the first one is Lst_IsEmpty) and simplify life once we start to throw consts on the code. Notes: svn path=/head/; revision=138185
* Include sys/sysctl.h on all architectures not only i386.Hartmut Brandt2004-11-251-0/+1
| | | | Notes: svn path=/head/; revision=138092
* remove XXX comment now that the kernel is fixed, there isn't any obviousJohn-Mark Gurney2004-09-061-1/+1
| | | | | | | | | reason to enable this as performance didn't significantly change... MFC after: 3 days Notes: svn path=/head/; revision=134843