summaryrefslogtreecommitdiffstats
path: root/usr.bin/make/Makefile
Commit message (Collapse)AuthorAgeFilesLines
* Add a ${CP} alias for copying files in the build.will2015-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
* When producing fmake(1), `make clean' should remove fmake.1 (a copy ofdteske2014-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
* Move old fmake tests into bmake and hook them to the build.jmmv2014-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.
* Remove support for WITHOUT_BMAKE. bmake is now the only make that canimp2014-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).
* Use src.opts.mk in preference to bsd.own.mk except where we need stuffimp2014-05-061-1/+1
| | | | from the latter.
* Migrate tools/regression/usr.bin/make/ to the new tests layout.jmmv2014-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@.
* Reverse the sense of the test wrt bmake, and guard againstsjg2013-05-161-1/+1
| | | | MK_BMAKE not being defined.
* Build bmake by default.sjg2013-05-161-0/+7
| | | | | | | If someone explicitly builds usr.bin/make while MK_BMAKE==yes, install it as 'fmake'. Reviewed by: brooks
* Correct typo in version.obrien2012-06-201-1/+1
|
* Deprecate the FreeBSD make's ":U" (to-upper case) and ":L" (to-lower case)obrien2012-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>
* Make is part of the bootstrap path, so we need to guard against thisimp2012-05-091-1/+1
| | | | | not being defined. Otherwise we don't make a new make when the old make is incompatible.
* Add src.conf option WITH_SHARED_TOOLCHAIN to enable building thekib2012-04-291-0/+4
| | | | | | | | toolchain binaries as dynamically linked. Option is disabled by default. Reviewed by: ru (previous version) MFC after: 2 weeks
* Revert r228521: sometimes job output is lostfjoe2011-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.
* job make: if stdout is a tty create a pty when running a command.fjoe2011-12-151-0/+2
|
* - Fix segmentation fault when running "+command" when run with -jX -n duefjoe2011-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
* Build usr.bin/ with WARNS=6 by default.ed2010-01-021-1/+0
| | | | Also add some missing $FreeBSD$ to keep svn happy.
* Remove inlining of functions that are used mostly in different object files.rdivacky2009-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
* No need to tell make to DTRT with "make love", just do it.obrien2008-03-041-5/+0
| | | | | Also remove the 2002/08/31 bootstrapping aid for upgrades from year old (mid-2001) systems.
* So, what's it supposed to say when you type "make love"?ru2006-05-111-0/+1
|
* Please ship the pointy hat to its home position.phk2005-09-261-2/+0
|
* Update coordinates for "mph" hash generator now that it lives in ports.phk2005-09-261-1/+1
|
* Add a .sinclude directive which does the exact same as .include, exceptphk2005-09-261-0/+2
| | | | whine when the file cannot be found and opened.
* Document why there is a dependency of certain object files from theharti2005-05-251-0/+6
| | | | | | Makefile. Requested by: ru
* Make shell.o dependend on the Makefile just in case someone changesharti2005-05-241-1/+1
| | | | the default shell in the Makefile.
* Bump the warning level to 6.harti2005-05-241-1/+1
|
* Factor out ProcExec() into its own file and rename it to Proc_Exec() forharti2005-05-241-2/+2
| | | | | | consistency with the rest of make. Obtained from: DragonFlyBSD (except for the rename)
* Factor out all the .SHELL parsing related stuff into its own file andharti2005-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)
* Use the name of the default shell instead of a numeric index to selectharti2005-05-241-6/+2
| | | | | | the default shell. Idea from: DragonFlyBSD
* Still too early to bump WARNS - there are still warnings on 64bitharti2005-05-121-1/+1
| | | | architectures.
* Use a variable initialized to a string instead of the string directlyharti2005-05-121-1/+1
| | | | | | to get rid of a const warning. Submitted by: Max Okumoto <okumoto@ucsd.edu> (7.244)
* Revert the previous accidential commit.harti2005-05-121-1/+1
|
* Cleanup SuffFindArchDeps() to get rid of two const-warnings.harti2005-05-121-1/+1
| | | | Submitted by: Max Okumoto <okumoto@ucsd.edu> (7.240)
* Merge compat.c into job.c. There is a lot in common between theseharti2005-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>
* Merge var_modify.c into var.c and move types and function declarationsharti2005-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>
* Rename the directive_hash.[ch] files to hash_tables.[ch] nowharti2005-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>
* Use a minimal perfect hash for the special sources/targets too. Addharti2005-04-281-6/+25
| | | | the corresponding magic to create the hash function to the Makefile.
* Fix the $$FreeBSD$$ that should be written verbatim to directive_hash.charti2005-04-281-1/+1
| | | | so that it doesn't get replaced with the Makefile's revision.
* Move the hash function for directives into its own file and addharti2005-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)
* Ups. Revert the last commits. These have been committed by accident.harti2005-03-151-1/+1
|
* modifier_M: instead of going through the string twice to compute theharti2005-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>
* While working on constification temporarily disable -Werror. Things are tooharti2005-02-091-0/+1
| | | | twisted.
* Move all the remaining list functions into one C-file and removeharti2005-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>
* NOSHARED -> NO_SHAREDru2004-12-211-1/+1
|
* Instead of dynamically allocating list heads allocated them staticallyharti2004-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.
* Get rid of the sequential access feature of the lists. This was usedharti2004-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.
* Change a couple of the primitve list functions to be macros. This changesharti2004-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.
* Merge the contents of lstInt.h into the public lst.h. This let's us getharti2004-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.
* Include sys/sysctl.h on all architectures not only i386.harti2004-11-251-0/+1
|
* remove XXX comment now that the kernel is fixed, there isn't any obviousjmg2004-09-061-1/+1
| | | | | | reason to enable this as performance didn't significantly change... MFC after: 3 days
* Put variable assignments on .MAKEFLAGS and .MFLAGS targets intoharti2004-08-121-1/+1
| | | | | | | | | the .MAKEFLAGS variable so that these are also passed to sub-makes. This makes the handling of variables in the command environment more consistent. PR: bin/68853 Submitted by: Martin Kamerhofer <data@sbox.tugraz.at>
OpenPOWER on IntegriCloud