summaryrefslogtreecommitdiff
path: root/usr.bin/make
AgeCommit message (Collapse)Author
2004-01-11Reindent search loop in SuffFindCmds using 'continue' and 'break' insteaddsl
of netsted ifs. No logic change.
2004-01-11Change DEBUG(DIR) traces to indent subsequent filenames instead ofdsl
generating very long lines (basically changes "..." into " ...\n ").
2004-01-09Add unit test for ternary modifiersjg
2004-01-08Fix :?: modifier so that it works again.sjg
2004-01-06Handle more complex conditional expressions.sjg
CondCvtArg now returns NULL if it consumed all input, or a pointer to any left overs.
2004-01-05Homogenize usage messages: make the 'usage' word all lowercase, as this seemsjmmv
to be the most common practice in our tree.
2003-12-26Bump date for previous; use macros for marking upwiz
the dollar sign.
2003-12-26Note that variable expansion can occur within SYSV style = substitions.jmc
2003-12-26Support variable expansions inside of SYSV style = substitutions. Better matchesjmc
expectations (and some cases of historical behavior I've found). Also fixes PR#3865
2003-12-26Don't assume startc is always {, set delim to endc when separating the args tojmc
the ? test.
2003-12-20Fixes for PR#18573 (make -j not stopping correctly on error).jmc
Using -e in sh/ksh to stop on error doesn't work with grouped commands. At least for any SUSE compliant sh(1). Instead, extend the Shell struct and add errOut which provides a template to use to check error status from commands.
2003-12-18When looking for a makefile and curdir != objdir (i.e. working inside of anjmc
objdir) try opening the file from curdir and if that fails try from objdir. This way .depend files get picked up via their full path names rather than just .depend so vars like PARSEDIR, PARSEFILE are then set correctly. This fixes PR#13289 reporting incorrect pathnames for .depends with errors in them
2003-12-07Drop trailing spaces.wiz
2003-12-07Add back 'on error' that got deleted by mistake.dsl
2003-12-07Add a -Dg3 which outputs the 'input graph' only on error exit.dsl
Lets you see the wood for the trees...
2003-11-14Don't create targets if dependant files marked .OPTIONAL are missing.dsl
2003-11-07Add some subsections in the VARIABLE ASSIGNMENTS section.lukem
In the "modifier description" list, show each modifier with the leading `:'. Rationale: it's hard to search for modifiers without it, and we already do the same thing in the -options and .makecommands lists. I now find it much easier to find the description for a modifier in the man page.
2003-10-27Overhaul how `build.sh tools' are used:lukem
* Rename "config.h" to "nbtool_config.h" and HAVE_CONFIG_H to HAVE_NBTOOL_CONFIG_H. This makes in more obvious in the source when we're using tools/compat/config.h versus "standard autoconf" config.h * Consistently move the inclusion of nbtool_config.h to before <sys/cdefs.h> so that the former can provide __RCSID() (et al), and there's no need to protect those macros any more. These changes should make it easier to "tool-ify" a program by adding: #if HAVE_NBTOOL_CONFIG_H #include "nbtool_config.h" #endif to the top of the source files (for the general case).
2003-10-23Fixes from PR#23210 to eliminate use of asprintf which makes cross buildingjmc
on non-NetBSD hosts work again
2003-10-09properly dottify .\" comments; this fixes output of [range] paragraphjdolecek
2003-09-27Implement :[] modifier to allow picking a range of words out of a variable.sjg
Also :tW and a W flag to :C and :S to allow treating value as a single word. Add unit tests for the above, and fix some corner cases. Based on patches supplied by Alan Barrett <apb@cequrux.com>
2003-09-10Add the 'e' debug flag (i.e., '-d e'): when enabled, show the "targetjmmv
failed" and "command failed" messages added recently. These introduce too much noise when debugging some kind of problems, specially in pkgsrc.
2003-09-10Document the '-d f' flag.jmmv
2003-09-09when displaying the 'Failed command:', collapse runs of whitespace in thelukem
command to a single space. suggested by David Laight in private mail.
2003-09-09Remove some code which makes file lookup rely on the fact thatdrochner
the first two directory entries are "." and "..". This behaviour is not required by applicable standards, and actually not provided by "coda". Now we get the "." and ".." into the per-directiry hash tables, but this should not hurt.
2003-09-08don't free cmdStart too early, as cmd points somewhere in there and welukem
may want cmd for error messages. should fix [bin/22705] from itojun@
2003-09-06Make empty() consider an undefined variable as empty,sjg
rather than throw a syntax error.
2003-09-05Whitespace nits.wiz
2003-09-05Allow -V '${FOO}' to print the expanded version of FOO.sjg
A side effect of adding and removing a -E option for the above is that the cases in MainParseArgs are now ordered correctly?
2003-09-02Also display failed target. Givenlukem
printf "all:\n\ttrue\n\t@false\n" | make -f - the error output now looks like: *** Failed target: all *** Failed command: false *** Error code 1 instead of just *** Error code 1 XXX: add this support for make -j builds.
2003-09-02display the command that failed.lukem
this is useful if the command-line had been suppressed.
2003-08-08Hook make unit-tests into regresssjg
2003-08-07Move UCB-licensed code from 4-clause to 3-clause licence.agc
Patches provided by Joel Baker in PR 22365, verified by myself.
2003-08-01Avoid \a as a test of invalid separator, since if we make ksh the defaultsjg
shell, we get different results. \x seems safe.
2003-08-01Fix for TEST_MAKE from Alan Barrettsjg
2003-08-01Allow .SHELL: to control the shell used by compat mode too.sjg
Add a shell spec for ksh - a nice portable posix shell. Document .SHELL:
2003-07-31Const poisoning.scw
2003-07-31Test behavior of commandline variable assignments.sjg
2003-07-29A couple of other places where delim should be setsjg
2003-07-29First bug picked up by the unit tests - delim wasn't always initialized.sjg
Avoid putting '\' in test case script lines since shell's like that on SunOS insist on interpreting them.
2003-07-29Use single quotes to protect everything from shell's that mightsjg
alter the results.
2003-07-29Regardless of the name of TEST_MAKE, force it to make in test.expsjg
to avoid needless failures.
2003-07-28Fix parsing bug for :ts - patch from Alan Barrett <apb@cequrux.com>sjg
Also add simple unit-test jig (regress/usr.bin/make will use it too) but having it local here makes inclusion in bmake simpler.
2003-07-26build var.c with -Wno-cast-qual - gcc3.3 complains about VarWordCompare()mrg
2003-07-23Fix merge problem with ts modifier and const correctness.sjg
Need to pass nstr to VarModify.
2003-07-16Bump date for tu addition; drop trailing space; sort a bit.wiz
2003-07-16backout. make(1) either uses strcpy() to malloc'ed region (enough size),itojun
or function signature prohibits us from using strlcpy().
2003-07-16we can't use snprintf here, as sizeof(pathname) is unknownitojun
2003-07-15strlcpy (fixed)itojun
2003-07-15strlcpyitojun