aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/make
Commit message (Collapse)AuthorAgeFilesLines
...
* | Use a clever definition of __FBSDID to allow building on !FreeBSD systems.Warner Losh2007-12-091-2/+5
| | | | | | | | Notes: svn path=/head/; revision=174480
* | Fix -jX when makefiles are remade.Max Khon2007-11-251-0/+16
| | | | | | | | Notes: svn path=/head/; revision=173919
* | Give more details on the following topics:Yaroslav Tykhiy2007-10-311-7/+77
| | | | | | | | | | | | | | | | o How global, command-line, and environment variables relate. o What peculiarities the -f option has WRT ${MAKEFLAGS}. Notes: svn path=/head/; revision=173217
* | Change directory back to ${.CURDIR} when remaking Makefiles.Max Khon2007-06-011-1/+9
| | | | | | | | | | | | | | Pointed out by: ru Notes: svn path=/head/; revision=170179
* | Improve logging when -dm is specified: if the node is consideredMax Khon2007-04-203-8/+7
| | | | | | | | | | | | | | | | out-of-date print not only "modified before source" message but also the path of youngest source. Notes: svn path=/head/; revision=168893
* | When remaking makefiles check that mtime has actually changed.Max Khon2007-04-201-3/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This fixes infinite restart in the following case: Makefile: foo foo: bar do-something Unlike GNU make, BSD make considers "Makefile" node as remade even if "foo" is up-to-date and was not actually rebuilt. GNU make does not consider nodes without commands as remade if child nodes were not actually rebuilt. Most probably, more proper fix would be to bring BSD make behaviour in-line with GNU make but this would be more intrusive change. Notes: svn path=/head/; revision=168892
* | In .error and .warning, prefer command-line variablesRuslan Ermilov2007-04-121-1/+1
| | | | | | | | | | | | | | | | | | to globals, as per documentation. Nudged by: Jeremie Le Hen Notes: svn path=/head/; revision=168671
* | Better English.Max Khon2007-03-081-1/+1
| | | | | | | | Notes: svn path=/head/; revision=167339
* | Implement "Remaking Makefiles" feature:Max Khon2007-03-087-27/+279
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | After reading Makefile and all the files that are included using .include or .sinclude directives (source Makefiles) make considers each source Makefile as a target and tries to rebuild it. Both explicit and implicit rules are checked and all source Makefiles are updated if necessary. If any of the source Makefiles were rebuilt, make restarts from clean state. To prevent infinite loops the following source Makefile targets are ignored: - :: targets that have no prerequisites but have commands - ! targets - targets that have .PHONY or .EXEC attributes - targets without prerequisites and without commands When remaking a source Makefile options -t (touch target), -q (query mode), and -n (no exec) do not take effect, unless source Makefile is specified explicitly as a target in make command line. Additionally, system makefiles and .depend are not considered as a Makefiles that can be rebuilt. Reviewed by: harti Notes: svn path=/head/; revision=167330
* | Fix a bug where the standard input (fifoFd == 0) was confused with anWill Andrews2007-03-081-1/+1
| | | | | | | | | | | | | | | | | | | | | | error return from open(2), leading to an erroneous value of maxJobs and a hung make when -f is standard input and -j is used. PR: bin/101232 Submitted by: Nate Eldredge <nge@cs.hmc.edu> Notes: svn path=/head/; revision=167329
* | o Grammar: is appears -> appears.Maxim Konovalov2006-12-311-1/+1
| | | | | | | | | | | | | | | | | | PR: docs/107306 Submitted by: Tomas Mozes MFC after: 1 week Notes: svn path=/head/; revision=165668
* | Fix a group of typos:Yaroslav Tykhiy2006-12-291-1/+1
| | | | | | | | | | | | | | | | | | | | | | preceed -> precede, preceeded -> preceded, preceeding -> preceding. Submitted by: Andre Guibert de Bruet <andy@siliconlandmark.com> Notes: svn path=/head/; revision=165628
* | Don't go beyond the provided string when parsing the `\' character.Ruslan Ermilov2006-10-091-2/+4
| | | | | | | | | | | | | | | | | | PR: bin/99985 Submitted by: Nate Eldredge MFC after: 3 days Notes: svn path=/head/; revision=163171
* | Markup nit.Ruslan Ermilov2006-09-291-1/+1
| | | | | | | | Notes: svn path=/head/; revision=162816
* | Markup fixes.Ruslan Ermilov2006-09-291-1/+1
| | | | | | | | Notes: svn path=/head/; revision=162792
* | Tell when a .include is processed with '-dd'.David E. O'Brien2006-07-221-0/+1
| | | | | | | | Notes: svn path=/head/; revision=160574
* | VarAdd() already does the debug printing, so Var_Set() only needs to do itDavid E. O'Brien2006-07-171-2/+1
| | | | | | | | | | | | | | in the case the var already exists. Notes: svn path=/head/; revision=160450
* | whitespace fixingDavid E. O'Brien2006-07-171-8/+8
| | | | | | | | Notes: svn path=/head/; revision=160442
* | So, what's it supposed to say when you type "make love"?Ruslan Ermilov2006-05-111-0/+1
| | | | | | | | Notes: svn path=/head/; revision=158452
* | Update comment about var modifiers (add 'N' and 'O' descriptions).Max Khon2006-04-081-2/+5
| | | | | | | | Notes: svn path=/head/; revision=157589
* | Add :u var modifier (remove adjacent duplicate words like uniq(1).Max Khon2006-04-082-0/+43
| | | | | | | | | | | | | | | | Reviewed by: harti Obtained from: NetBSD (mostly) Notes: svn path=/head/; revision=157588
* | Prepare for MACHINE and hw.machine switching to "pc98" on FreeBSD/pc98.Ruslan Ermilov2005-12-051-16/+11
| | | | | | | | | | | | | | Reviewed by: nyan Notes: svn path=/head/; revision=153115
* | Quickly fix brokeness in revision 1.157, that change wasDavid Xu2005-12-011-4/+4
| | | | | | | | | | | | | | | | free()ing stack memory which causes the program to abort, and I can no longer make buildworld. Notes: svn path=/head/; revision=152982
* | - match_var: do not address memory at invalid address (`len' can be greaterMax Khon2005-11-302-3/+5
| | | | | | | | | | | | | | | | | | | | | | | | than strlen(var) + 1) - ReadMakeFile: prevent `fname' memory leak - ReadMakeFile: prevent double free (caused by double fclose) -- ParsePopInput() closes input file Reviewed by: harti Notes: svn path=/head/; revision=152969
* | Make sure that files included using ".include <foo>" are reallyRuslan Ermilov2005-10-171-17/+16
| | | | | | | | | | | | | | | | | | | | | | looked for in the system make file directory or in the specified -m paths instead of always looking in the other -I and .PATH specified paths. (Commit log shamelessly stolen from NetBSD.) Reviewed by: yar Notes: svn path=/head/; revision=151419
* | Revise the manpage to a certain extent, mostly with respect toYaroslav Tykhiy2005-10-141-32/+68
| | | | | | | | | | | | | | | | | | | | make's processing of top-level and included makefiles. Point out at make.conf(5) and __MAKE_CONF when telling about sys.mk. Reviewed by: ru Notes: svn path=/head/; revision=151351
* | __MAKE_CONF doesn't really belong here because it isYaroslav Tykhiy2005-10-121-10/+1
| | | | | | | | | | | | | | | | | | | | a FreeBSD extension of sys.mk. A xref to make.conf(5) will be enough here. Requested by: ru Notes: svn path=/head/; revision=151255
* | Clarify the usage and effects of sys.mk, make.conf(5), and __MAKE_CONF.Yaroslav Tykhiy2005-10-101-4/+13
| | | | | | | | | | | | | | MFC after: 2 weeks Notes: svn path=/head/; revision=151201
* | Make sure that the created fifo gets deleted if the top level make instanceScott Long2005-10-091-0/+2
| | | | | | | | | | | | | | exits due to a signal. Notes: svn path=/head/; revision=151162
* | Remove redundant `\&' escapes.Ruslan Ermilov2005-09-271-28/+28
| | | | | | | | Notes: svn path=/head/; revision=150609
* | Fixup previous commit.Ruslan Ermilov2005-09-271-3/+2
| | | | | | | | Notes: svn path=/head/; revision=150608
* | 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-264-20/+45
| | | | | | | | | | | | | | whine when the file cannot be found and opened. Notes: svn path=/head/; revision=150595
* | Fix the type of the variable 'debug'. It is used as a bitmap, so theHartmut Brandt2005-09-071-1/+1
| | | | | | | | | | | | | | | | | | | | | | type should be int rather than Boolean. PR: bin/84528 Submitted by: Max Okumoto <okumoto@ucsd.edu> MFC after: 3 weeks Notes: svn path=/head/; revision=149844
* | Fix all the spelling mistakes I could find in the man pages for wordsGiorgos Keramidas2005-07-311-1/+1
| | | | | | | | | | | | | | | | | | | | | | that have at least 3 characters. MFC after: 1 week Thanks to: Music band ``Chingon'' for keeping me company while searching for these. Notes: svn path=/head/; revision=148580
* | Fix the "..." special command. If this command is found all furtherHartmut Brandt2005-07-191-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | commands for this target are appended to the .END target instead of beeing executed now. They are executed when the graph is finished. There was a bug with executing the .END target which came in when doing conversion to LST_FOREACH() which caused make to dump core. PR: bin/83698 Submitted by: Max Okumoto <okumoto@ucsd.edu> MFC after: 3 days Notes: svn path=/head/; revision=148151
* | Markup and wording fixes.Ruslan Ermilov2005-06-141-9/+14
| | | | | | | | | | | | | | Approved by: re (blanket) Notes: svn path=/head/; revision=147370
* | Under certain conditions the condition parser would go one past end ofHartmut Brandt2005-05-251-1/+1
| | | | | | | | | | | | | | | | | | the string. Until now this caused no harm, because the buffer code used to tack two NULs onto buffers. With the new, soon to come, parsing code this isn't the case anymore in all cases, so fix this. Notes: svn path=/head/; revision=146625
* | 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
* | The caller of Var_Value() should not change the variable value. MakeHartmut Brandt2005-05-245-14/+15
| | | | | | | | | | | | | | | | | | this clear by constifying the return value. Obtained from: DragonFlyBSD Notes: svn path=/head/; revision=146581
* | Get rid of the third argument to Var_Value() the pointer it pointedHartmut Brandt2005-05-248-65/+26
| | | | | | | | | | | | | | | | | | to has always been set to NULL for some time now. Obtained from: DragonFlyBSD Notes: svn path=/head/; revision=146580
* | 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
* | Fix a 64-bit warning by casting an int64_t to intmax_t and printing itHartmut Brandt2005-05-241-1/+2
| | | | | | | | | | | | | | with %jd. Notes: svn path=/head/; revision=146577
* | Factor out ProcExec() into its own file and rename it to Proc_Exec() forHartmut Brandt2005-05-244-123/+193
| | | | | | | | | | | | | | | | | | 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-247-477/+588
| | | | | | | | | | | | | | | | | | | | 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-243-8/+4
| | | | | | | | | | | | | | | | | | the default shell. Idea from: DragonFlyBSD Notes: svn path=/head/; revision=146571
* | Another shell attribute 'unsetenv' that will cause to unsetenv("ENV")Hartmut Brandt2005-05-242-8/+18
| | | | | | | | | | | | | | | | | | before executing the shell. Until now this was done when the default shell was the ksh. This failed if the default shell was sh or csh and the user switched to ksh. Notes: svn path=/head/; revision=146570
* | Describe the meta and builtins attributes for the .SHELL specialHartmut Brandt2005-05-241-0/+14
| | | | | | | | | | | | | | target. Notes: svn path=/head/; revision=146563