The NetBSD Project

CVS log for src/usr.bin/make/make.1

[BACK] Up to [cvs.NetBSD.org] / src / usr.bin / make

Request diff between arbitrary revisions


Default branch: MAIN
Current tag: MAIN


Revision 1.375 / (download) - annotate - [select for diffs], Sun Mar 10 02:53:37 2024 UTC (9 days ago) by sjg
Branch: MAIN
CVS Tags: HEAD
Changes since 1.374: +10 -7 lines
Diff to previous 1.374 (colored) to selected 1.204 (colored)

make: record exit status in GNode

SetErrorVars can now set .ERROR_EXIT which allows
a .ERROR target to ignore the case of .ERROR_EXIT == 6
which means failure happened elsewhere.

Reviewed by:

Revision 1.374 / (download) - annotate - [select for diffs], Thu Jan 25 21:00:59 2024 UTC (7 weeks, 4 days ago) by sjg
Branch: MAIN
CVS Tags: triaxx-drm
Changes since 1.373: +4 -4 lines
Diff to previous 1.373 (colored) to selected 1.204 (colored)

Note that in both :U and :D newval may be empty

Revision 1.373 / (download) - annotate - [select for diffs], Thu Jan 25 07:35:46 2024 UTC (7 weeks, 4 days ago) by sjg
Branch: MAIN
Changes since 1.372: +4 -3 lines
Diff to previous 1.372 (colored) to selected 1.204 (colored)

Indicate that for :U newval is optional

Revision 1.372 / (download) - annotate - [select for diffs], Sun Dec 24 16:48:30 2023 UTC (2 months, 3 weeks ago) by sjg
Branch: MAIN
Changes since 1.371: +3 -3 lines
Diff to previous 1.371 (colored) to selected 1.204 (colored)

Compat_RunCommand call Shell_Init is shellPath is NULL

Since .SHELL is potentially used in compat mode as well,
the man page description should not imply it is only used in jobs mode.

Remove path="sh" from shell-sh unit-test - and it would have detected
this bug.

Reviewed by: rillig

Revision 1.371 / (download) - annotate - [select for diffs], Sun Sep 10 21:52:36 2023 UTC (6 months, 1 week ago) by rillig
Branch: MAIN
Changes since 1.370: +2 -2 lines
Diff to previous 1.370 (colored) to selected 1.204 (colored)

make: fix typo

Revision 1.370 / (download) - annotate - [select for diffs], Sat Sep 9 16:41:04 2023 UTC (6 months, 1 week ago) by sjg
Branch: MAIN
Changes since 1.369: +6 -1 lines
Diff to previous 1.369 (colored) to selected 1.204 (colored)

Add .MAKE.JOBS.C to indicate wether -jC is supported

Revision 1.369 / (download) - annotate - [select for diffs], Sat Sep 9 01:30:59 2023 UTC (6 months, 1 week ago) by sjg
Branch: MAIN
Changes since 1.368: +8 -2 lines
Diff to previous 1.368 (colored) to selected 1.204 (colored)

make: allow -j to compute a multiple of ncpu

If _SC_NPROCESSORS_ONLN is supported; and -j arg is a floating point
number or ends in 'C' compute .MAKE.JOBS as a multiple of _SC_NPROCESSORS_ONLN

Based on a suggestion from des at freebsd.org
Discussed with: rillig, christos

Revision 1.368 / (download) - annotate - [select for diffs], Sun Aug 20 19:58:15 2023 UTC (6 months, 4 weeks ago) by sjg
Branch: MAIN
Changes since 1.367: +6 -2 lines
Diff to previous 1.367 (colored) to selected 1.204 (colored)

make.1: note that %s should only be used with :localtime

Revision 1.367 / (download) - annotate - [select for diffs], Wed Jun 28 06:15:07 2023 UTC (8 months, 3 weeks ago) by rillig
Branch: MAIN
Changes since 1.366: +10 -9 lines
Diff to previous 1.366 (colored) to selected 1.204 (colored)

make.1: clean up wording, clarify scope of '!' in conditions

Revision 1.366 / (download) - annotate - [select for diffs], Wed May 10 18:22:33 2023 UTC (10 months, 1 week ago) by sjg
Branch: MAIN
Changes since 1.365: +4 -4 lines
Diff to previous 1.365 (colored) to selected 1.204 (colored)

Make :mtime operate on each word in variable value.

Reviewed by: rillig

Revision 1.365 / (download) - annotate - [select for diffs], Tue May 9 20:53:23 2023 UTC (10 months, 1 week ago) by sjg
Branch: MAIN
Changes since 1.364: +8 -1 lines
Diff to previous 1.364 (colored) to selected 1.204 (colored)

make: :mtime=error throw error on stat(2) failure

Sometimes we want fatal error if stat fails on the
presumed pathname.

Revision 1.364 / (download) - annotate - [select for diffs], Tue May 9 20:14:27 2023 UTC (10 months, 1 week ago) by sjg
Branch: MAIN
Changes since 1.363: +14 -2 lines
Diff to previous 1.363 (colored) to selected 1.204 (colored)

make: add :mtime to provide mtime of file

The value of the variable is passed to stat(2)
and st_mtime is new value.
An optional arg can be used if stat(2) fails, otherwise
the current time is used.

See varmod-mtime.mk for usage examples.

Revision 1.363 / (download) - annotate - [select for diffs], Sun May 7 16:43:50 2023 UTC (10 months, 1 week ago) by sjg
Branch: MAIN
Changes since 1.362: +1 -3 lines
Diff to previous 1.362 (colored) to selected 1.204 (colored)

make.1: lose the trailing blank lines

Revision 1.362 / (download) - annotate - [select for diffs], Sun May 7 16:32:47 2023 UTC (10 months, 1 week ago) by sjg
Branch: MAIN
Changes since 1.361: +5 -7 lines
Diff to previous 1.361 (colored) to selected 1.204 (colored)

make: fix description of .PREFIX

For at least 20 years, the setting of .PREFIX in make
has not matched the documentation.
Since the documented behavior does not match reality or
POSIX make, fix the documentation.

In FindDepsRegularPath str_basename is applied to .PREFIX
this is wrong, but I was unable to verify fixing it
was benign in NetBSD build - my NetBSD box (7.2)
was unable to build known-good src with or without any patches.

For now just document the behavior more accurately.

Revision 1.361 / (download) - annotate - [select for diffs], Thu Mar 23 03:29:28 2023 UTC (11 months, 3 weeks ago) by sjg
Branch: MAIN
Changes since 1.360: +24 -3 lines
Diff to previous 1.360 (colored) to selected 1.204 (colored)

Document unexplained *** Error code 6

Revision 1.360 / (download) - annotate - [select for diffs], Thu Jan 26 20:48:17 2023 UTC (13 months, 3 weeks ago) by sjg
Branch: MAIN
Changes since 1.359: +8 -2 lines
Diff to previous 1.359 (colored) to selected 1.204 (colored)

make: some variables should be read-only

Make variables like .newline and .MAKE.{GID,PID,PPID,UID} read-only.

Reviewed by: rillig

Revision 1.359 / (download) - annotate - [select for diffs], Tue Jan 24 00:24:02 2023 UTC (13 months, 3 weeks ago) by sjg
Branch: MAIN
Changes since 1.358: +18 -1 lines
Diff to previous 1.358 (colored) to selected 1.204 (colored)

make: .SYSPATH: to add dirs to sysIncPath

.SYSPATH: with no sources will clear sysIncPath
otherwise sources are added

Reviewed by: rillig

Revision 1.358 / (download) - annotate - [select for diffs], Mon Jan 23 23:01:52 2023 UTC (13 months, 3 weeks ago) by sjg
Branch: MAIN
Changes since 1.357: +6 -2 lines
Diff to previous 1.357 (colored) to selected 1.204 (colored)

make: .[NO]READONLY for control of read-only variables

Reviewed by: rillig

Revision 1.357 / (download) - annotate - [select for diffs], Sun Jan 1 21:02:09 2023 UTC (14 months, 2 weeks ago) by rillig
Branch: MAIN
Changes since 1.356: +2 -2 lines
Diff to previous 1.356 (colored) to selected 1.204 (colored)

make.1: bump date

Revision 1.356 / (download) - annotate - [select for diffs], Sun Jan 1 19:55:25 2023 UTC (14 months, 2 weeks ago) by rillig
Branch: MAIN
Changes since 1.355: +2 -2 lines
Diff to previous 1.355 (colored) to selected 1.204 (colored)

make.1: fix markup

Revision 1.355 / (download) - annotate - [select for diffs], Sun Jan 1 19:10:58 2023 UTC (14 months, 2 weeks ago) by rillig
Branch: MAIN
Changes since 1.354: +73 -8 lines
Diff to previous 1.354 (colored) to selected 1.204 (colored)

make.1: sync list of built-in variables with reality

Fixes PR 57029.

Revision 1.354 / (download) - annotate - [select for diffs], Sun Jan 1 17:27:40 2023 UTC (14 months, 2 weeks ago) by rillig
Branch: MAIN
Changes since 1.353: +46 -45 lines
Diff to previous 1.353 (colored) to selected 1.204 (colored)

make.1: sort list of built-in variables

Revision 1.353 / (download) - annotate - [select for diffs], Sun Jan 1 17:17:09 2023 UTC (14 months, 2 weeks ago) by rillig
Branch: MAIN
Changes since 1.352: +5 -5 lines
Diff to previous 1.352 (colored) to selected 1.204 (colored)

make.1: use consistent markup for boolean flags

Revision 1.352 / (download) - annotate - [select for diffs], Sun Jan 1 17:15:07 2023 UTC (14 months, 2 weeks ago) by rillig
Branch: MAIN
Changes since 1.351: +50 -50 lines
Diff to previous 1.351 (colored) to selected 1.204 (colored)

make.1: move description of .MAKE.MODE below the .MAKE.META block

Revision 1.351 / (download) - annotate - [select for diffs], Sun Jan 1 16:49:27 2023 UTC (14 months, 2 weeks ago) by rillig
Branch: MAIN
Changes since 1.350: +2 -2 lines
Diff to previous 1.350 (colored) to selected 1.204 (colored)

make.1: reduce indentation of the long list of variable names

Revision 1.350 / (download) - annotate - [select for diffs], Tue Nov 29 23:56:05 2022 UTC (15 months, 2 weeks ago) by rillig
Branch: MAIN
CVS Tags: netbsd-10-base
Branch point for: netbsd-10
Changes since 1.349: +4 -3 lines
Diff to previous 1.349 (colored) to selected 1.204 (colored)

make.1: clarify in which case an expression may omit braces

Revision 1.349 / (download) - annotate - [select for diffs], Tue Nov 15 07:58:00 2022 UTC (16 months ago) by rillig
Branch: MAIN
Changes since 1.348: +5 -4 lines
Diff to previous 1.348 (colored) to selected 1.204 (colored)

make.1: make horizontal and vertical spacing more consistent

Revision 1.348 / (download) - annotate - [select for diffs], Sun Oct 2 23:36:41 2022 UTC (17 months, 2 weeks ago) by rillig
Branch: MAIN
Changes since 1.347: +144 -134 lines
Diff to previous 1.347 (colored) to selected 1.204 (colored)

make.1: clean up style, typography, accuracy

In a code example, replace the deprecated `pwd` with the preferred form
$$(pwd).

Shorten the paragraph about escaping a dollar in modifiers, as the
various escaping mechanisms are described in the section 'Expansion of
variables'.

Summarize the previously many cases of the ':from=to' modifier to be
simpler to understand, actually mention what the pattern matching
character '%' can match.

Describe the syntax of function call expressions in conditionals.
Previously, only the function names had been documented.

Revision 1.347 / (download) - annotate - [select for diffs], Thu Sep 15 14:49:36 2022 UTC (18 months ago) by uwe
Branch: MAIN
Changes since 1.346: +12 -11 lines
Diff to previous 1.346 (colored) to selected 1.204 (colored)

make(1): fix and simplify optional negation on conditional

Revision 1.346 / (download) - annotate - [select for diffs], Thu Sep 15 14:39:33 2022 UTC (18 months ago) by uwe
Branch: MAIN
Changes since 1.345: +2 -4 lines
Diff to previous 1.345 (colored) to selected 1.204 (colored)

make(1): use .Dl for one-line literal display

Revision 1.345 / (download) - annotate - [select for diffs], Wed Sep 14 20:39:23 2022 UTC (18 months ago) by rillig
Branch: MAIN
Changes since 1.344: +13 -10 lines
Diff to previous 1.344 (colored) to selected 1.204 (colored)

make.1: make typography more consistent

Revision 1.344 / (download) - annotate - [select for diffs], Wed Sep 14 20:18:24 2022 UTC (18 months ago) by rillig
Branch: MAIN
Changes since 1.343: +9 -10 lines
Diff to previous 1.343 (colored) to selected 1.204 (colored)

make.1: fix typography, especially spacing

Revision 1.343 / (download) - annotate - [select for diffs], Mon Sep 12 07:21:10 2022 UTC (18 months ago) by rillig
Branch: MAIN
Changes since 1.342: +22 -22 lines
Diff to previous 1.342 (colored) to selected 1.204 (colored)

make.1: fix style of ellipsis

In most places, '...' is not intended to be entered verbatim, instead it
is a placeholder, so don't use a fixed-width font for it.

Revision 1.342 / (download) - annotate - [select for diffs], Mon Sep 12 07:13:02 2022 UTC (18 months ago) by rillig
Branch: MAIN
Changes since 1.341: +2 -3 lines
Diff to previous 1.341 (colored) to selected 1.204 (colored)

make.1: remove extraneous .El, update date

Revision 1.341 / (download) - annotate - [select for diffs], Mon Sep 12 07:10:59 2022 UTC (18 months ago) by rillig
Branch: MAIN
Changes since 1.340: +33 -20 lines
Diff to previous 1.340 (colored) to selected 1.204 (colored)

make.1: split section on directives into several subsections

Directives such as .error or .undef are not conditionals.  Having these
directives mixed in a single list made it more difficult to see how the
directives relate.

Revision 1.340 / (download) - annotate - [select for diffs], Fri Sep 9 10:57:39 2022 UTC (18 months, 1 week ago) by uwe
Branch: MAIN
Changes since 1.339: +2 -2 lines
Diff to previous 1.339 (colored) to selected 1.204 (colored)

make(1): add space before the punctuation argument

Revision 1.339 / (download) - annotate - [select for diffs], Fri Sep 9 06:23:36 2022 UTC (18 months, 1 week ago) by rillig
Branch: MAIN
Changes since 1.338: +38 -48 lines
Diff to previous 1.338 (colored) to selected 1.204 (colored)

make.1: clean up and make the description more accurate

Most changes are editorial.  Notable exceptions are:

The ':Q' in MAKE_PRINT_VAR_ON_ERROR was wrongly added in the previous
commit.  As that variable does not produce a shell command, there is no
point in quoting the characters.

Since 2012.10.07.19.17.31, make doesn't complain anymore if a shell
command in compat mode expands to an empty string, which removes the
need to "keep make happy".

Revision 1.338 / (download) - annotate - [select for diffs], Fri Sep 9 05:27:32 2022 UTC (18 months, 1 week ago) by rillig
Branch: MAIN
Changes since 1.337: +17 -15 lines
Diff to previous 1.337 (colored) to selected 1.204 (colored)

make.1: only use .Pa for actual pathnames

Revision 1.337 / (download) - annotate - [select for diffs], Thu Sep 8 20:22:55 2022 UTC (18 months, 1 week ago) by rillig
Branch: MAIN
Changes since 1.336: +185 -185 lines
Diff to previous 1.336 (colored) to selected 1.204 (colored)

make.1: rewrite many details in a more precise way

Revision 1.336 / (download) - annotate - [select for diffs], Wed Sep 7 23:34:56 2022 UTC (18 months, 1 week ago) by rillig
Branch: MAIN
Changes since 1.335: +53 -58 lines
Diff to previous 1.335 (colored) to selected 1.204 (colored)

make.1: clean up style, grammar, punctuation, improve clarity

Revision 1.335 / (download) - annotate - [select for diffs], Wed Sep 7 22:57:43 2022 UTC (18 months, 1 week ago) by rillig
Branch: MAIN
Changes since 1.334: +27 -27 lines
Diff to previous 1.334 (colored) to selected 1.204 (colored)

make.1: remove redundant 'then' from conditional sentences.

Revision 1.334 / (download) - annotate - [select for diffs], Wed Sep 7 22:36:48 2022 UTC (18 months, 1 week ago) by rillig
Branch: MAIN
Changes since 1.333: +81 -92 lines
Diff to previous 1.333 (colored) to selected 1.204 (colored)

make.1: use present tense in conditional sentences

These sentences are about general, timeless rules, rather than about
predictions about the future.

Revision 1.333 / (download) - annotate - [select for diffs], Mon Sep 5 17:13:36 2022 UTC (18 months, 1 week ago) by rillig
Branch: MAIN
Changes since 1.332: +23 -18 lines
Diff to previous 1.332 (colored) to selected 1.204 (colored)

make.1: clarify interpretation of conditionals

String literals in quotes are never interpreted as numbers.

The operators '<', '<=', '>', '>=' are only allowed in numeric
comparisons.

Avoid the term 'C relational operators' since in C, the relational
operators exclude '==' and '!=', which are called equality operators
instead.

Revision 1.332 / (download) - annotate - [select for diffs], Sat Sep 3 00:50:07 2022 UTC (18 months, 2 weeks ago) by rillig
Branch: MAIN
Changes since 1.331: +3 -5 lines
Diff to previous 1.331 (colored) to selected 1.204 (colored)

make: clean up handling of .break in .for loops

Move For_Break further up, as the functions in that file are sorted from
small to big.  The cast from size_t to unsigned int is required by lint.

In parse.c, move the code into a separate function to keep
ParseDirective small.  Its only job is to parse the directive and then
delegate to another function doing the actual work.

In the manual page, remove empty lines.

In the test, ensure that .break stops processing of the .for loop
immediately; anything after the .break is not processed anymore.
Replace ':=' with '=', as there is no need to evaluate '$i' early.
Check the expected value in the .mk file instead of the .exp file, to
keep the reading scope as small as possible.

Revision 1.331 / (download) - annotate - [select for diffs], Fri Sep 2 16:24:31 2022 UTC (18 months, 2 weeks ago) by sjg
Branch: MAIN
Changes since 1.330: +10 -2 lines
Diff to previous 1.330 (colored) to selected 1.204 (colored)

make: add .break to terminate .for loop early

When .break is encountered within a .for loop
it causes immediate termination.

Outside of a .for loop .break causes a parse error.

Reviewed by: christos

Revision 1.330 / (download) - annotate - [select for diffs], Sun Aug 14 22:11:20 2022 UTC (19 months ago) by uwe
Branch: MAIN
Changes since 1.329: +16 -6 lines
Diff to previous 1.329 (colored) to selected 1.204 (colored)

make(1): mark up the variable expansion example

Revision 1.329 / (download) - annotate - [select for diffs], Sun Aug 14 21:57:26 2022 UTC (19 months ago) by uwe
Branch: MAIN
Changes since 1.328: +4 -4 lines
Diff to previous 1.328 (colored) to selected 1.204 (colored)

make(1): use .Dl for .MAKE.JOB.PREFIX examples

Revision 1.328 / (download) - annotate - [select for diffs], Sun Aug 14 21:53:58 2022 UTC (19 months ago) by uwe
Branch: MAIN
Changes since 1.327: +18 -14 lines
Diff to previous 1.327 (colored) to selected 1.204 (colored)

make(1): prettify .for index variable example

Revision 1.327 / (download) - annotate - [select for diffs], Sun Aug 14 21:48:05 2022 UTC (19 months ago) by uwe
Branch: MAIN
Changes since 1.326: +12 -10 lines
Diff to previous 1.326 (colored) to selected 1.204 (colored)

make(1): more .Va fixes

Revision 1.326 / (download) - annotate - [select for diffs], Sun Aug 14 20:19:27 2022 UTC (19 months ago) by uwe
Branch: MAIN
Changes since 1.325: +3 -3 lines
Diff to previous 1.325 (colored) to selected 1.204 (colored)

make(1): mark up FRC in BUGS

Revision 1.325 / (download) - annotate - [select for diffs], Sun Aug 14 20:07:18 2022 UTC (19 months ago) by uwe
Branch: MAIN
Changes since 1.324: +37 -13 lines
Diff to previous 1.324 (colored) to selected 1.204 (colored)

make(1): Use .Dq instead of literal ASCII quotes

Revision 1.324 / (download) - annotate - [select for diffs], Sun Aug 14 20:04:07 2022 UTC (19 months ago) by uwe
Branch: MAIN
Changes since 1.323: +20 -20 lines
Diff to previous 1.323 (colored) to selected 1.204 (colored)

make(1): Be consistent about using .Va for make variables

Revision 1.323 / (download) - annotate - [select for diffs], Sun Aug 14 19:26:39 2022 UTC (19 months ago) by rillig
Branch: MAIN
Changes since 1.322: +4 -4 lines
Diff to previous 1.322 (colored) to selected 1.204 (colored)

make.1: fix accidental removal of the directive 'export'

Revision 1.322 / (download) - annotate - [select for diffs], Sun Aug 14 10:14:58 2022 UTC (19 months ago) by uwe
Branch: MAIN
Changes since 1.321: +33 -33 lines
Diff to previous 1.321 (colored) to selected 1.204 (colored)

make(1): more .Ar fixes

Revision 1.321 / (download) - annotate - [select for diffs], Sun Aug 14 09:47:29 2022 UTC (19 months ago) by uwe
Branch: MAIN
Changes since 1.320: +4 -4 lines
Diff to previous 1.320 (colored) to selected 1.204 (colored)

make(1): ".../" in -m option description is literal ".../"

Revision 1.320 / (download) - annotate - [select for diffs], Sun Aug 14 09:11:33 2022 UTC (19 months ago) by uwe
Branch: MAIN
Changes since 1.319: +2 -2 lines
Diff to previous 1.319 (colored) to selected 1.204 (colored)

make(1): Consistent formatting for -i and -s descriptions.

Revision 1.319 / (download) - annotate - [select for diffs], Sun Aug 14 09:08:29 2022 UTC (19 months ago) by uwe
Branch: MAIN
Changes since 1.318: +37 -31 lines
Diff to previous 1.318 (colored) to selected 1.204 (colored)

make(1): Fix markup of the -d[flags] section.

The debug flags are literals, not syntactic variables (.Ar).
While here use .Dq for quoted words in the text.

Revision 1.318 / (download) - annotate - [select for diffs], Sun Aug 14 08:49:00 2022 UTC (19 months ago) by uwe
Branch: MAIN
Changes since 1.317: +8 -8 lines
Diff to previous 1.317 (colored) to selected 1.204 (colored)

make(1): Fix some obviously wrong uses of .Va

Revision 1.317 / (download) - annotate - [select for diffs], Sun Aug 14 04:17:09 2022 UTC (19 months ago) by rillig
Branch: MAIN
Changes since 1.316: +28 -19 lines
Diff to previous 1.316 (colored) to selected 1.204 (colored)

make.1: clean up formatting and grammar, be more accurate

Revision 1.316 / (download) - annotate - [select for diffs], Sun Aug 14 04:12:29 2022 UTC (19 months ago) by rillig
Branch: MAIN
Changes since 1.315: +3 -3 lines
Diff to previous 1.315 (colored) to selected 1.204 (colored)

make.1: not every '-' is a flag

Revision 1.315 / (download) - annotate - [select for diffs], Tue Jul 12 23:47:00 2022 UTC (20 months ago) by rillig
Branch: MAIN
Changes since 1.314: +15 -15 lines
Diff to previous 1.314 (colored) to selected 1.204 (colored)

make.1: fix markup for variable modifiers, add italic correction

Revision 1.314 / (download) - annotate - [select for diffs], Tue Jul 12 23:03:52 2022 UTC (20 months ago) by rillig
Branch: MAIN
Changes since 1.313: +6 -6 lines
Diff to previous 1.313 (colored) to selected 1.204 (colored)

make.1: fix markup for options, they are not arguments

Revision 1.313 / (download) - annotate - [select for diffs], Tue Jul 12 22:59:43 2022 UTC (20 months ago) by rillig
Branch: MAIN
Changes since 1.312: +5 -4 lines
Diff to previous 1.312 (colored) to selected 1.204 (colored)

make.1: fix ugly line break in PostScript output

Revision 1.312 / (download) - annotate - [select for diffs], Tue Jul 12 22:51:12 2022 UTC (20 months ago) by rillig
Branch: MAIN
Changes since 1.311: +6 -6 lines
Diff to previous 1.311 (colored) to selected 1.204 (colored)

make.1: fix markup

Not all square brackets are options, some are wildcards.

Revision 1.311 / (download) - annotate - [select for diffs], Tue Jul 12 22:45:05 2022 UTC (20 months ago) by rillig
Branch: MAIN
Changes since 1.310: +118 -118 lines
Diff to previous 1.310 (colored) to selected 1.204 (colored)

make.1: replace redundant .Ql with .Sq

Revision 1.310 / (download) - annotate - [select for diffs], Tue Jul 12 17:45:11 2022 UTC (20 months, 1 week ago) by rillig
Branch: MAIN
Changes since 1.309: +48 -38 lines
Diff to previous 1.309 (colored) to selected 1.204 (colored)

make: describe variable assignment and evaluation more precisely

Variables in make are not "much like variables in the shell", they only
look that way.  Their behavior is more similar to C preprocessor macros.

The spaces around a variable value are removed when parsing the variable
assignment, not after evaluating it.

Before describing the variable assignment operators, introduce the
general syntax of a variable assignment.

Add a separate subsection "Expansion of variables", since assignment and
expansion are unrelated.  Illustrate how variable expansions look
instead of describing it in many words.

Describe how variables are expanded in conditionals, since that is
different from everywhere else.

Revision 1.309 / (download) - annotate - [select for diffs], Sat May 7 17:49:47 2022 UTC (22 months, 1 week ago) by rillig
Branch: MAIN
Changes since 1.308: +8 -6 lines
Diff to previous 1.308 (colored) to selected 1.204 (colored)

make: allow to randomize build order of targets

In complex dependency structures, when a build fails, a probable cause
is a missing dependency declaration between some files.  In compat mode,
the build order is deterministic, in jobs mode, it is somewhat
deterministic.  To explore more edge cases, add the line ".MAKE.MODE +=
randomize-targets" somewhere in the makefile.

Fixes PR bin/45226 by riastradh.  Reviewed by christos.

Revision 1.308 / (download) - annotate - [select for diffs], Mon Apr 18 15:06:27 2022 UTC (23 months ago) by rillig
Branch: MAIN
Changes since 1.307: +10 -12 lines
Diff to previous 1.307 (colored) to selected 1.204 (colored)

make: only switch to POSIX mode if '.POSIX:' is the first line

https://pubs.opengroup.org/onlinepubs/9699919799/utilities/make.html
says that in order to make a makefile POSIX-conforming, its first
non-comment line must be the special dependency line '.POSIX:' without
any source dependencies.

Previously, make switched to POSIX mode even if such a line occurred
anywhere else, which was allowed by POSIX but was deep in the
"unspecified behavior" area.  For NetBSD make, there is no big
difference since it doesn't ship any <posix.mk> file, this change mainly
affects the bmake distribution.

Previously, makefiles that contain '.POSIX:' somewhere in the middle
could fail due to <posix.mk> resetting .SUFFIXES, among other things.

Suggested by Simon J. Gerraty, who also reviewed an earlier version of
this change.

Revision 1.307 / (download) - annotate - [select for diffs], Sat Mar 26 15:39:58 2022 UTC (23 months, 3 weeks ago) by sjg
Branch: MAIN
Changes since 1.306: +8 -1 lines
Diff to previous 1.306 (colored) to selected 1.204 (colored)

Mention 'make -r' with .POSIX

Revision 1.306 / (download) - annotate - [select for diffs], Fri Mar 25 21:16:04 2022 UTC (23 months, 3 weeks ago) by sjg
Branch: MAIN
Changes since 1.305: +14 -2 lines
Diff to previous 1.305 (colored) to selected 1.204 (colored)

Include posix.mk when .POSIX: first encountered

Since .POSIX: is required to be the first non-comment line
in a Makefile, including ${MAKE_POSIX_MK} or whatever _PATH_POSIX_MK is
set to at this point is equivalent to an extension of sys.mk

This is a minimal change that can allow a better approximation of
POSIX compliance

Reviewed by: rillig

Revision 1.305 / (download) - annotate - [select for diffs], Wed Feb 9 21:09:24 2022 UTC (2 years, 1 month ago) by rillig
Branch: MAIN
Changes since 1.304: +7 -7 lines
Diff to previous 1.304 (colored) to selected 1.204 (colored)

make: fix mistakes, spelling and typos in comments and manual page

No binary change for -DNDEBUG.

Revision 1.304 / (download) - annotate - [select for diffs], Sat Jan 29 20:54:58 2022 UTC (2 years, 1 month ago) by sjg
Branch: MAIN
Changes since 1.303: +5 -4 lines
Diff to previous 1.303 (colored) to selected 1.204 (colored)

Tweak description of local variable assignments

Revision 1.303 / (download) - annotate - [select for diffs], Sat Jan 29 07:42:10 2022 UTC (2 years, 1 month ago) by sjg
Branch: MAIN
Changes since 1.302: +12 -2 lines
Diff to previous 1.302 (colored) to selected 1.204 (colored)

Document quirks of target local variable assignments

Revision 1.302 / (download) - annotate - [select for diffs], Thu Jan 27 06:02:59 2022 UTC (2 years, 1 month ago) by sjg
Branch: MAIN
Changes since 1.301: +28 -6 lines
Diff to previous 1.301 (colored) to selected 1.204 (colored)

Allow local variable assignments in dependency lines

The variable is set in the context of the target.
This syntax has been supported by gmake for ~ever.
If necessary a makefile can set .MAKE.TARGET_LOCAL_VARIABLES=false
to disable this.

Expose GetBooleanExpr so parse.c can use it.

Revision 1.301 / (download) - annotate - [select for diffs], Thu Jan 13 04:51:50 2022 UTC (2 years, 2 months ago) by sjg
Branch: MAIN
Changes since 1.300: +8 -2 lines
Diff to previous 1.300 (colored) to selected 1.204 (colored)

meta.c: add .MAKE.META.CMP_FILTER

On rare occasions it is useful to be able to filter command lines
before comparison.

Revision 1.300 / (download) - annotate - [select for diffs], Sun Dec 12 20:45:48 2021 UTC (2 years, 3 months ago) by sjg
Branch: MAIN
Changes since 1.299: +5 -2 lines
Diff to previous 1.299 (colored) to selected 1.204 (colored)

Add .SUFFIXES as read-only variable.

References to ${.SUFFIXES} are handled dynamically in
ParseVarnameLong by calling Suff_NamesStr.

The variable cannot be set normally.

Reviewed by: rillig

Revision 1.299 / (download) - annotate - [select for diffs], Tue Aug 3 07:12:50 2021 UTC (2 years, 7 months ago) by wiz
Branch: MAIN
Changes since 1.298: +6 -4 lines
Diff to previous 1.298 (colored) to selected 1.204 (colored)

Document :On modifiers in more detail.

Revision 1.298 / (download) - annotate - [select for diffs], Fri Jul 30 22:16:09 2021 UTC (2 years, 7 months ago) by rillig
Branch: MAIN
Changes since 1.297: +2 -2 lines
Diff to previous 1.297 (colored) to selected 1.204 (colored)

make: fix typo in manual page, add more tests for the new ':On'

Revision 1.297 / (download) - annotate - [select for diffs], Fri Jul 30 19:55:22 2021 UTC (2 years, 7 months ago) by sjg
Branch: MAIN
Changes since 1.296: +12 -2 lines
Diff to previous 1.296 (colored) to selected 1.204 (colored)

Add :On for numeric sort

Reviewed by: christos rillig

Revision 1.296 / (download) - annotate - [select for diffs], Thu Feb 4 21:42:46 2021 UTC (3 years, 1 month ago) by rillig
Branch: MAIN
CVS Tags: cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x
Changes since 1.295: +3 -3 lines
Diff to previous 1.295 (colored) to selected 1.204 (colored)

make: rename context and ctxt to scope

This continues the previous commit, in which VAR_GLOBAL, VAR_INTERNAL
and VAR_CMDLINE were renamed.

Renaming the variable 'ctxt' was trivial since that word is used nowhere
else.  In the comments though, each occurrence of the word 'context' had
to be checked individually since the word 'context' was not only used
for referring to a variable scope.  It is also used to distinguish
different situations where characters are escaped in a certain way
('parsing context') and in a few other expressions.

Revision 1.295 / (download) - annotate - [select for diffs], Wed Dec 23 13:49:12 2020 UTC (3 years, 2 months ago) by rillig
Branch: MAIN
Changes since 1.294: +2 -2 lines
Diff to previous 1.294 (colored) to selected 1.204 (colored)

make(1): remove trailing whitespace in manual page

Revision 1.294 / (download) - annotate - [select for diffs], Tue Dec 22 20:10:21 2020 UTC (3 years, 2 months ago) by rillig
Branch: MAIN
Changes since 1.293: +5 -5 lines
Diff to previous 1.293 (colored) to selected 1.204 (colored)

make(1): allow .undef to undefine multiple variables at once

Since make doesn't support variable names containing spaces, this edge
case is not enough reason to stop this feature.  Having multiple
variable names as arguments nicely aligns with other directives such as
.for and .export.

Revision 1.293 / (download) - annotate - [select for diffs], Wed Nov 25 00:50:44 2020 UTC (3 years, 3 months ago) by sjg
Branch: MAIN
Changes since 1.292: +8 -2 lines
Diff to previous 1.292 (colored) to selected 1.204 (colored)

Add .MAKE.UID and .MAKE.GID

Revision 1.292 / (download) - annotate - [select for diffs], Sat Nov 14 22:19:13 2020 UTC (3 years, 4 months ago) by rillig
Branch: MAIN
Changes since 1.291: +7 -3 lines
Diff to previous 1.291 (colored) to selected 1.204 (colored)

make(1): document the -S option

This option has been available at least since 1993-03-21, and for the
same time it has been undocumented.

Revision 1.291 / (download) - annotate - [select for diffs], Thu Nov 12 23:35:21 2020 UTC (3 years, 4 months ago) by sjg
Branch: MAIN
Changes since 1.290: +11 -2 lines
Diff to previous 1.290 (colored) to selected 1.204 (colored)

Pass a writable flag to Main_SetObjdir to control writable check

For curdir and an explicit .OBJDIR target, we allow for
the directory to be read-only.
During InitObjdir we otherwise default to requiring objdir to be
writable - this can be controlled by env variable
MAKE_OBJDIR_CHECK_WRITABLE

Add unit-tests/objdir-writable

Reviewed by: christos rillig

Revision 1.290 / (download) - annotate - [select for diffs], Sun Nov 1 20:24:45 2020 UTC (3 years, 4 months ago) by rillig
Branch: MAIN
Changes since 1.289: +4 -4 lines
Diff to previous 1.289 (colored) to selected 1.204 (colored)

make(1): fix manual page regarding numerical comparisons

Make uses double, not int, for comparing things.

Revision 1.289 / (download) - annotate - [select for diffs], Fri Aug 28 17:15:04 2020 UTC (3 years, 6 months ago) by rillig
Branch: MAIN
Changes since 1.288: +5 -12 lines
Diff to previous 1.288 (colored) to selected 1.204 (colored)

make(1): fix manual page about the modifiers of the :C modifier

Revision 1.288 / (download) - annotate - [select for diffs], Sat Aug 22 19:30:58 2020 UTC (3 years, 6 months ago) by sjg
Branch: MAIN
Changes since 1.287: +5 -2 lines
Diff to previous 1.287 (colored) to selected 1.204 (colored)

Add .SHELL as read-only variable

The .SHELL variable represents the shellPath used to run
scripts.

Reviewed by: rillig, christos

Revision 1.287 / (download) - annotate - [select for diffs], Wed Aug 19 06:10:06 2020 UTC (3 years, 6 months ago) by rillig
Branch: MAIN
Changes since 1.286: +30 -30 lines
Diff to previous 1.286 (colored) to selected 1.204 (colored)

make(1): fix a few inconsistencies in the manual page

Revision 1.286 / (download) - annotate - [select for diffs], Wed Aug 5 08:50:42 2020 UTC (3 years, 7 months ago) by dholland
Branch: MAIN
Changes since 1.285: +3 -1 lines
Diff to previous 1.285 (colored) to selected 1.204 (colored)

Also mention that make dependency operators must be uniform.

This wasn't previously documented, I think.

Revision 1.285 / (download) - annotate - [select for diffs], Wed Aug 5 08:43:24 2020 UTC (3 years, 7 months ago) by dholland
Branch: MAIN
Changes since 1.284: +30 -25 lines
Diff to previous 1.284 (colored) to selected 1.204 (colored)

Rework the description of the :, !, and :: dependence operators to make sense.

Bump date.

Revision 1.284 / (download) - annotate - [select for diffs], Fri Jul 31 20:22:10 2020 UTC (3 years, 7 months ago) by sjg
Branch: MAIN
Changes since 1.283: +7 -2 lines
Diff to previous 1.283 (colored) to selected 1.204 (colored)

Add -dL for LINT

When parsing variable assignments other than := and if
value contains '$' attempt Var_Subst the same as for :=,
if the value does not parse correctly, we get a fatal error
including file an line number.

This can greatly help with finding the cause of problems.

Reviewed by: christos

Revision 1.283 / (download) - annotate - [select for diffs], Sat Jul 18 21:37:38 2020 UTC (3 years, 8 months ago) by sjg
Branch: MAIN
Changes since 1.282: +4 -2 lines
Diff to previous 1.282 (colored) to selected 1.204 (colored)

Add -dh for DEBUG_HASH

Allow tracking of max chain length, to see how well the hash
tables are working.
Pull the actual hash operation into a marco so it can be
easily changed - for experimenting.

The current hash, is pretty good.

Reviewed by: christos

Revision 1.282 / (download) - annotate - [select for diffs], Sat Jun 6 20:28:42 2020 UTC (3 years, 9 months ago) by wiz
Branch: MAIN
Changes since 1.281: +2 -2 lines
Diff to previous 1.281 (colored) to selected 1.204 (colored)

Remove trailing whitespace.

Revision 1.281 / (download) - annotate - [select for diffs], Fri Jun 5 19:20:46 2020 UTC (3 years, 9 months ago) by sjg
Branch: MAIN
Changes since 1.280: +9 -6 lines
Diff to previous 1.280 (colored) to selected 1.204 (colored)

make: add :Or for reverse sort

:Or is more efficient than :O:[-1..1]

Reviewed by: christos

Revision 1.280 / (download) - annotate - [select for diffs], Mon Apr 27 20:03:08 2020 UTC (3 years, 10 months ago) by christos
Branch: MAIN
Changes since 1.279: +25 -2 lines
Diff to previous 1.279 (colored) to selected 1.204 (colored)

document the SYSV ${VAR:old=new} corner cases.

Revision 1.279 / (download) - annotate - [select for diffs], Tue Feb 4 16:28:29 2020 UTC (4 years, 1 month ago) by wiz
Branch: MAIN
CVS Tags: phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, is-mlppp-base, is-mlppp
Changes since 1.278: +2 -2 lines
Diff to previous 1.278 (colored) to selected 1.204 (colored)

Remove trailing whitespace.

Revision 1.278 / (download) - annotate - [select for diffs], Mon Feb 3 22:25:17 2020 UTC (4 years, 1 month ago) by uwe
Branch: MAIN
Changes since 1.277: +5 -5 lines
Diff to previous 1.277 (colored) to selected 1.204 (colored)

Make delimiters in <file> and "file" literal.

Revision 1.277 / (download) - annotate - [select for diffs], Mon Feb 3 15:47:03 2020 UTC (4 years, 1 month ago) by kamil
Branch: MAIN
Changes since 1.276: +4 -4 lines
Diff to previous 1.276 (colored) to selected 1.204 (colored)

Fix usage of angle-brackets and quotes in make(1) manpage

make(1) has commands .include <file> and .include "file",
but the manpage was (inconsistently) rendering <file> with
angle-brackets (e.g. in UTF8  ) and "file" with curly-quotes
in HTML output (but not text).

This is an attempt to fix that and output only literal <file>
and "file" as is actually required in the makefile.fileoutput,

https://reviews.freebsd.org/D21470

Submitted by Mateusz Piotrowski (FreeBSD)

Revision 1.276 / (download) - annotate - [select for diffs], Thu Dec 19 07:14:07 2019 UTC (4 years, 3 months ago) by maxv
Branch: MAIN
Changes since 1.275: +12 -2 lines
Diff to previous 1.275 (colored) to selected 1.204 (colored)

Revert the filemon removal in bmake, as pointed out by maya we do care
about not introducing divergence with FreeBSD, and the cost of unused
is acceptable here.

Revision 1.275 / (download) - annotate - [select for diffs], Wed Dec 18 07:37:19 2019 UTC (4 years, 3 months ago) by maxv
Branch: MAIN
Changes since 1.274: +3 -13 lines
Diff to previous 1.274 (colored) to selected 1.204 (colored)

Retire filemon, discussed on tech-kern@.

Revision 1.274 / (download) - annotate - [select for diffs], Sat Feb 16 07:41:12 2019 UTC (5 years, 1 month ago) by gutteridge
Branch: MAIN
CVS Tags: phil-wifi-20191119, phil-wifi-20190609, netbsd-9-base, netbsd-9-3-RELEASE, netbsd-9-2-RELEASE, netbsd-9-1-RELEASE, netbsd-9-0-RELEASE, netbsd-9-0-RC2, netbsd-9-0-RC1, netbsd-9
Changes since 1.273: +5 -5 lines
Diff to previous 1.273 (colored) to selected 1.204 (colored)

make(1): minor grammar fixes in BUGS section

Revision 1.273 / (download) - annotate - [select for diffs], Sun May 27 01:14:51 2018 UTC (5 years, 9 months ago) by christos
Branch: MAIN
CVS Tags: phil-wifi-base, pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226, pgoyette-compat-1126, pgoyette-compat-1020, pgoyette-compat-0930, pgoyette-compat-0906, pgoyette-compat-0728, pgoyette-compat-0625
Branch point for: phil-wifi
Changes since 1.272: +9 -2 lines
Diff to previous 1.272 (colored) to selected 1.204 (colored)

- Introduce :q modifier for make variables and make it double escape $'s so
  that passing variables to recursive makes with :q works as expected.
- Revert :Q to work as before.
- Adjust makefiles that use recursive make to use :q

Discussed on tech-toolchain@
XXX: pullup 8

Revision 1.272 / (download) - annotate - [select for diffs], Mon Apr 2 04:26:17 2018 UTC (5 years, 11 months ago) by dholland
Branch: MAIN
CVS Tags: pgoyette-compat-0521, pgoyette-compat-0502, pgoyette-compat-0422, pgoyette-compat-0415, pgoyette-compat-0407
Changes since 1.271: +3 -2 lines
Diff to previous 1.271 (colored) to selected 1.204 (colored)

Fix bad markup.

Revision 1.271 / (download) - annotate - [select for diffs], Mon Jul 3 21:34:20 2017 UTC (6 years, 8 months ago) by wiz
Branch: MAIN
CVS Tags: pgoyette-compat-base, pgoyette-compat-0330, pgoyette-compat-0322, pgoyette-compat-0315, perseant-stdc-iso10646-base, perseant-stdc-iso10646
Branch point for: pgoyette-compat
Changes since 1.270: +8 -8 lines
Diff to previous 1.270 (colored) to selected 1.204 (colored)

Remove workaround for ancient HTML generation code.

Revision 1.270 / (download) - annotate - [select for diffs], Thu Jun 22 13:42:09 2017 UTC (6 years, 8 months ago) by dholland
Branch: MAIN
Changes since 1.269: +23 -8 lines
Diff to previous 1.269 (colored) to selected 1.204 (colored)

Improve description of -V. Can probably be improved further.

Revision 1.269 / (download) - annotate - [select for diffs], Thu Jun 22 13:34:13 2017 UTC (6 years, 8 months ago) by wiz
Branch: MAIN
Changes since 1.268: +3 -3 lines
Diff to previous 1.268 (colored) to selected 1.204 (colored)

Whitespace fixes.

Revision 1.268 / (download) - annotate - [select for diffs], Thu Jun 22 13:21:21 2017 UTC (6 years, 8 months ago) by dholland
Branch: MAIN
Changes since 1.267: +9 -3 lines
Diff to previous 1.267 (colored) to selected 1.204 (colored)

Document what the magic variable .MAKE.EXPAND_VARIABLES actually does.

Revision 1.267 / (download) - annotate - [select for diffs], Mon Jun 19 19:58:24 2017 UTC (6 years, 9 months ago) by christos
Branch: MAIN
Changes since 1.266: +7 -2 lines
Diff to previous 1.266 (colored) to selected 1.204 (colored)

Add -v variable that always expands variables; restore -V the way it was.

Revision 1.266 / (download) - annotate - [select for diffs], Wed Feb 1 18:39:27 2017 UTC (7 years, 1 month ago) by sjg
Branch: MAIN
CVS Tags: prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, pgoyette-localcount-20170426, pgoyette-localcount-20170320, netbsd-8-base, bouyer-socketcan-base1
Branch point for: netbsd-8
Changes since 1.265: +7 -9 lines
Diff to previous 1.265 (colored) to selected 1.204 (colored)

Since we are avoiding VAR_INTERNAL, allow the variable :_ stores to
to be specified, also allows for multiple stages of modification to
be stashed.

Revision 1.265 / (download) - annotate - [select for diffs], Mon Jan 30 02:46:20 2017 UTC (7 years, 1 month ago) by sjg
Branch: MAIN
Changes since 1.264: +29 -2 lines
Diff to previous 1.264 (colored) to selected 1.204 (colored)

Add :range and :_

:range	replaces var value with an integer sequence one per word
	in the current var value.

:_	stores the current var value in $_ so that it can be referred to
	later in the modifier series.

Reviewed by: christos

Revision 1.264 / (download) - annotate - [select for diffs], Sat Jan 14 22:58:04 2017 UTC (7 years, 2 months ago) by sjg
Branch: MAIN
CVS Tags: bouyer-socketcan-base
Branch point for: bouyer-socketcan
Changes since 1.263: +12 -6 lines
Diff to previous 1.263 (colored) to selected 1.204 (colored)

Allow providing a utc value to :{gm,local}time

Reviewed by: christos

Revision 1.263 / (download) - annotate - [select for diffs], Fri Aug 26 23:37:54 2016 UTC (7 years, 6 months ago) by dholland
Branch: MAIN
CVS Tags: pgoyette-localcount-20170107, pgoyette-localcount-20161104, localcount-20160914
Changes since 1.262: +10 -2 lines
Diff to previous 1.262 (colored) to selected 1.204 (colored)

Document .DELETE_ON_ERROR.

Revision 1.262 / (download) - annotate - [select for diffs], Thu Aug 18 19:23:20 2016 UTC (7 years, 7 months ago) by wiz
Branch: MAIN
Changes since 1.261: +2 -2 lines
Diff to previous 1.261 (colored) to selected 1.204 (colored)

Whitespace.

Revision 1.261 / (download) - annotate - [select for diffs], Mon Aug 15 19:20:17 2016 UTC (7 years, 7 months ago) by sjg
Branch: MAIN
Changes since 1.260: +5 -2 lines
Diff to previous 1.260 (colored) to selected 1.204 (colored)

Add .MAKE.META.IGNORE_FILTER to allow more complicated filtering of filemon data.

The filter is applied to paths Read or Excuted, and if it expands to
nothing, the entry is skipped.

For example; dirdeps.mk can set this to:

.MAKE.META.IGNORE_FILTER = M*/${.MAKE.DEPENDFILE_PREFIX}*

when checking if DIRDEPS_CACHE is up to date, where only Makefile.depend*
are of interest.

Revision 1.260 / (download) - annotate - [select for diffs], Wed Aug 10 23:49:12 2016 UTC (7 years, 7 months ago) by sjg
Branch: MAIN
Changes since 1.259: +15 -3 lines
Diff to previous 1.259 (colored) to selected 1.204 (colored)

Set .ERROR_CMD if we can

Revision 1.259 / (download) - annotate - [select for diffs], Fri Jun 3 07:07:37 2016 UTC (7 years, 9 months ago) by wiz
Branch: MAIN
CVS Tags: pgoyette-localcount-base, pgoyette-localcount-20160806, pgoyette-localcount-20160726
Branch point for: pgoyette-localcount
Changes since 1.258: +3 -3 lines
Diff to previous 1.258 (colored) to selected 1.204 (colored)

Fix typo in width argument; end sentence with dot.

Revision 1.258 / (download) - annotate - [select for diffs], Fri Jun 3 01:16:27 2016 UTC (7 years, 9 months ago) by sjg
Branch: MAIN
Changes since 1.257: +14 -3 lines
Diff to previous 1.257 (colored) to selected 1.204 (colored)

Refactor the logic for deciding when a .meta file is needed.

Both meta_create() and meta_oodate() now share meta_needed()
to indicate if a .meta file is needed.

This allows for deciding that missing .meta file is cause of out-of-date.
The new knob 'missing-meta' controlls this, and is off by default
since the side effect files of generators like yacc will typically need
.NOMETA to avoid problems.

This however makes it much easier for folk to switch back and forth
with meta mode (eg. FreeBSD's normal build can leverage meta mode for
improved reliablility without need to clean).

Also if .MAKE.MODE does not contain 'nofilemon', the knob
'missing-filemon' allows control as to whether missing filemon data
should cause the target to be out-of-date.
Again off by default.

Revision 1.257 / (download) - annotate - [select for diffs], Tue May 10 23:45:45 2016 UTC (7 years, 10 months ago) by sjg
Branch: MAIN
Changes since 1.256: +5 -2 lines
Diff to previous 1.256 (colored) to selected 1.204 (colored)

Allow for ignoring paths that match a set of patterns.
This can be expensive, so use with caution.

Revision 1.256 / (download) - annotate - [select for diffs], Wed Mar 16 00:19:01 2016 UTC (8 years ago) by sjg
Branch: MAIN
Changes since 1.255: +2 -2 lines
Diff to previous 1.255 (colored) to selected 1.204 (colored)

Fix syntax

Revision 1.255 / (download) - annotate - [select for diffs], Mon Mar 14 07:42:15 2016 UTC (8 years ago) by matthias
Branch: MAIN
Changes since 1.254: +4 -1 lines
Diff to previous 1.254 (colored) to selected 1.204 (colored)

make $@ an alias for $! in archive member rules (compatibility with
other makes).

Revision 1.254 / (download) - annotate - [select for diffs], Sat Feb 20 01:43:28 2016 UTC (8 years ago) by wiz
Branch: MAIN
Changes since 1.253: +12 -12 lines
Diff to previous 1.253 (colored) to selected 1.204 (colored)

Spelling fixes.

Revision 1.253 / (download) - annotate - [select for diffs], Sat Feb 20 01:19:03 2016 UTC (8 years ago) by sjg
Branch: MAIN
Changes since 1.252: +14 -2 lines
Diff to previous 1.252 (colored) to selected 1.204 (colored)

Add a knob .MAKE.SAVE_DOLLARS to control the behavior of $$ during :=

If TRUE '$$' are not consumed (saved).
If FALSE '$$' becomes '$' just like normal expansion rules.

default is TRUE.

Reviewed by: christos

Revision 1.252 / (download) - annotate - [select for diffs], Thu Feb 18 20:25:08 2016 UTC (8 years, 1 month ago) by sjg
Branch: MAIN
Changes since 1.251: +6 -2 lines
Diff to previous 1.251 (colored) to selected 1.204 (colored)

Add .export-literal to avoid the need for $$ dance when trying to put
unexpanded variables into environment.

Reviewed by: christos

Revision 1.251 / (download) - annotate - [select for diffs], Thu Feb 18 06:18:58 2016 UTC (8 years, 1 month ago) by sjg
Branch: MAIN
Changes since 1.250: +2 -2 lines
Diff to previous 1.250 (colored) to selected 1.204 (colored)

It's 2016

Revision 1.250 / (download) - annotate - [select for diffs], Thu Feb 18 05:02:49 2016 UTC (8 years, 1 month ago) by sjg
Branch: MAIN
Changes since 1.249: +10 -2 lines
Diff to previous 1.249 (colored) to selected 1.204 (colored)

Add support for .dinclude

Like .sinclude missing file will be ignored.
Like .depend stale dependencies will be ignored.
Allows better implementation of auto depend.

Reviewed by: christos
Requested by: Bryan Drewery at FreeBSD.

Revision 1.249 / (download) - annotate - [select for diffs], Fri Jun 5 07:33:40 2015 UTC (8 years, 9 months ago) by wiz
Branch: MAIN
Changes since 1.248: +2 -2 lines
Diff to previous 1.248 (colored) to selected 1.204 (colored)

Drop trailing whitespace.

Revision 1.248 / (download) - annotate - [select for diffs], Fri Jun 5 05:37:42 2015 UTC (8 years, 9 months ago) by sjg
Branch: MAIN
Changes since 1.247: +15 -5 lines
Diff to previous 1.247 (colored) to selected 1.204 (colored)

Document .OBJDIR target.

Revision 1.247 / (download) - annotate - [select for diffs], Fri Apr 10 08:43:32 2015 UTC (8 years, 11 months ago) by wiz
Branch: MAIN
Changes since 1.246: +2 -2 lines
Diff to previous 1.246 (colored) to selected 1.204 (colored)

It's 2015.

Revision 1.246 / (download) - annotate - [select for diffs], Fri Apr 10 08:43:16 2015 UTC (8 years, 11 months ago) by wiz
Branch: MAIN
Changes since 1.245: +4 -4 lines
Diff to previous 1.245 (colored) to selected 1.204 (colored)

Remove trailing whitespace.

Revision 1.245 / (download) - annotate - [select for diffs], Thu Apr 9 18:22:08 2015 UTC (8 years, 11 months ago) by sjg
Branch: MAIN
Changes since 1.244: +2 -2 lines
Diff to previous 1.244 (colored) to selected 1.204 (colored)

Forgot to tweak date

Revision 1.244 / (download) - annotate - [select for diffs], Thu Apr 9 18:21:01 2015 UTC (8 years, 11 months ago) by sjg
Branch: MAIN
Changes since 1.243: +11 -1 lines
Diff to previous 1.243 (colored) to selected 1.204 (colored)

jobs mode handles '-' very differently to compat mode, but this is not
reflected in make.1
Also fix handling to match the behavior described in the comment
of JobPrintCommand (only matters if shell sets hasErrCtl).

A better long term solution is needed since the current behavior
is sub-optimal wrt '-' and different from all other makes.

Reviewed by: christos

Revision 1.243 / (download) - annotate - [select for diffs], Sun Sep 14 08:47:19 2014 UTC (9 years, 6 months ago) by apb
Branch: MAIN
Changes since 1.242: +4 -4 lines
Diff to previous 1.242 (colored) to selected 1.204 (colored)

Small markup fixes:
* Use \e instead of \\ to represent a backslash;
* Dont' start a line with .SUFFIXES.

Revision 1.242 / (download) - annotate - [select for diffs], Sun Sep 14 04:32:42 2014 UTC (9 years, 6 months ago) by dholland
Branch: MAIN
Changes since 1.241: +2 -2 lines
Diff to previous 1.241 (colored) to selected 1.204 (colored)

bump date; I think I'm done for tonight

Revision 1.241 / (download) - annotate - [select for diffs], Sun Sep 14 04:32:07 2014 UTC (9 years, 6 months ago) by dholland
Branch: MAIN
Changes since 1.240: +75 -7 lines
Diff to previous 1.240 (colored) to selected 1.204 (colored)

Add some notes on compatibility with other make dialects.

I was originally intending to preserve some of Jarmo Jaakkola's notes
on POSIX make from the PR 49085 changes... but really there's no point
wandering into details about $? and such when the big picture is
"almost everything in this manual works only in BSD make".

Maybe the exact details can be stuffed into a chapter of the mythical
make reference manual if that ever gets (re)written.

Revision 1.240 / (download) - annotate - [select for diffs], Sun Sep 14 03:50:28 2014 UTC (9 years, 6 months ago) by dholland
Branch: MAIN
Changes since 1.239: +35 -19 lines
Diff to previous 1.239 (colored) to selected 1.204 (colored)

Improve the documentation of rule-local variables. Cherry-picked from
the PR 49085 changes, with some adjustments by me.

Revision 1.239 / (download) - annotate - [select for diffs], Sun Sep 14 03:13:49 2014 UTC (9 years, 6 months ago) by dholland
Branch: MAIN
Changes since 1.238: +37 -23 lines
Diff to previous 1.238 (colored) to selected 1.204 (colored)

Improvements pertaining to shell commands and chdir. Some of this
appeared in the PR 49085 changes, even though it's not actually
relevant there except tangentially. However, I've reworked most of
that for clarity and added some more.

Revision 1.238 / (download) - annotate - [select for diffs], Tue Sep 9 06:41:56 2014 UTC (9 years, 6 months ago) by dholland
Branch: MAIN
Changes since 1.237: +4 -4 lines
Diff to previous 1.237 (colored) to selected 1.204 (colored)

Restore -r1.234 of make.1, which was an unrelated fix from sjg pertaining
to the docs for the -w option.

Revision 1.237 / (download) - annotate - [select for diffs], Tue Sep 9 06:39:59 2014 UTC (9 years, 6 months ago) by dholland
Branch: MAIN
Changes since 1.236: +64 -396 lines
Diff to previous 1.236 (colored) to selected 1.204 (colored)

Revert the man page as well. (hi joerg)

Revert it to 20140823 (-r1.230), before the controversial commits,
which changed it a good deal.

Revision 1.236 / (download) - annotate - [select for diffs], Fri Sep 5 06:57:20 2014 UTC (9 years, 6 months ago) by wiz
Branch: MAIN
Changes since 1.235: +2 -2 lines
Diff to previous 1.235 (colored) to selected 1.204 (colored)

Reduce pirate slang.

Revision 1.235 / (download) - annotate - [select for diffs], Thu Sep 4 19:07:47 2014 UTC (9 years, 6 months ago) by christos
Branch: MAIN
Changes since 1.234: +8 -6 lines
Diff to previous 1.234 (colored) to selected 1.204 (colored)

document commented out .INVISIBLE and .JOIN.

Revision 1.234 / (download) - annotate - [select for diffs], Thu Aug 28 19:55:00 2014 UTC (9 years, 6 months ago) by sjg
Branch: MAIN
Changes since 1.233: +4 -4 lines
Diff to previous 1.233 (colored) to selected 1.204 (colored)

Enter/leave flag is -w not -dw

Revision 1.233 / (download) - annotate - [select for diffs], Sat Aug 23 15:05:40 2014 UTC (9 years, 6 months ago) by christos
Branch: MAIN
Changes since 1.232: +264 -27 lines
Diff to previous 1.232 (colored) to selected 1.204 (colored)

PR/46096: Jarmo Jaakkola: fix many problems with dependencies (PR 49086)

Quite extensive rewrite of the Suff module.  Some ripple effects into
Parse and Targ modules too.

Dependency searches in general were made to honor explicit rules so
implicit and explicit sources are no longer applied on targets that
do not invoke a transformation rule.

Archive member dependency search was rewritten.  Explicit rules now
work properly and $(.TARGET) is set correctly.  POSIX semantics for
lib(member.o) and .s1.a rules are supported.

.SUFFIXES list maintenance was rewritten so that scanning of existing
rules works when suffixes are added and that clearing the suffix list
removes single suffix rules too.  Transformation rule nodes are now
mixed with regular nodes so they are available as regular targets too
if needed (especially after the known suffixes are cleared).

The .NULL target was documented in the manual page, especially to
warn against using it when a single suffix rule would work.
A deprecation warning was also added to the manual and make also
warns the user if it encounters .NULL.

Search for suffix rules no longer allows the explicit dependencies
to override the selected transformation rule.  A check is made in
the search that the transformation that would be tried does not
already exist in the chain.  This prevents getting stuck in an infinite
loop under specific circumstances.  Local variables are now set
before node's children are expanded so dynamic sources work in
multi-stage transformations.  Make_HandleUse() no longer expands
the added children for transformation nodes, preventing triple
expansion and allowing the Suff module to properly postpone their
expansion until proper values are set for the local variables.

Directory prefix is no longer removed from $(.PREFIX) if the target
is found via directory search.

The last rule defined is now used instead of the first one (POSIX
requirement) in case a rule is defined multiple times.  Everything
defined in the first instance is undone, but things added "globally"
are honored.  To implement this, each node tracks attribute bits
which have been set by special targets (global) instead of special
sources (local).  They also track dependencies that were added by
a rule with commands (local) instead of rule with no commands (global).

New attribute, OP_FROM_SYS_MK is introduced.  It is set on all targets
found in system makefiles so that they are not eligible to become
the main target.  We cannot just set OP_NOTMAIN because it is one of
the attributes inherited from transformation and .USE rules and would
make any eligible target that uses a built-in inference rule ineligible.

The $(.IMPSRC) local variable now works like in gmake: it is set to
the first prerequisite for explicit rules.  For implicit rules it
is still the implied source.

The manual page is improved regarding the fixed features.  Test cases
for the fixed problems are added.

Other improvements in the Suff module include:
  - better debug messages for transformation rule search (length of
    the chain is now visualized by indentation)
  - Suff structures are created, destroyed and moved around by a set
    of maintenance functions so their reference counts are easier
    to track (this also gets rid of a lot of code duplication)
  - some unreasonably long functions were split into smaller ones
  - many local variables had their names changed to describe their
    purpose instead of their type

Revision 1.232 / (download) - annotate - [select for diffs], Sat Aug 23 15:03:22 2014 UTC (9 years, 6 months ago) by wiz
Branch: MAIN
Changes since 1.231: +2 -2 lines
Diff to previous 1.231 (colored) to selected 1.204 (colored)

Bump date for previous.

Revision 1.231 / (download) - annotate - [select for diffs], Sat Aug 23 14:50:24 2014 UTC (9 years, 6 months ago) by christos
Branch: MAIN
Changes since 1.230: +125 -32 lines
Diff to previous 1.230 (colored) to selected 1.204 (colored)

PR/49085: Jarmo Jaakkola: fix several parsing errors

Don't exit from var.c:Var_Parse() before possible modifiers are handled
on D and F modified versions of local variables.  Properly expand $(?D)
and $(?F) too.

Make line continuations in rule's commands POSIX compliant.

Fix the syntax error caused by lib(member) as the last target before
a dependency operator.

Document the line continuation change in the manual page.  Also talk
more about the POSIX style local variables and their modifiers.

Add tests covering the fixed problems into d_posix.mk.  The test is
a known failure at the moment because of PR 49086 and PR 49092.

[XXX: unconverted tests]

Revision 1.230 / (download) - annotate - [select for diffs], Sat Feb 15 18:55:30 2014 UTC (10 years, 1 month ago) by sjg
Branch: MAIN
CVS Tags: yamt-pagecache-base9, tls-maxphys-base, tls-earlyentropy-base, tls-earlyentropy, riastradh-xf86-video-intel-2-7-1-pre-2-21-15, riastradh-drm2-base3, netbsd-7-nhusb-base-20170116, netbsd-7-nhusb-base, netbsd-7-nhusb, netbsd-7-base, netbsd-7-2-RELEASE, netbsd-7-1-RELEASE, netbsd-7-1-RC2, netbsd-7-1-RC1, netbsd-7-1-2-RELEASE, netbsd-7-1-1-RELEASE, netbsd-7-1, netbsd-7-0-RELEASE, netbsd-7-0-RC3, netbsd-7-0-RC2, netbsd-7-0-RC1, netbsd-7-0-2-RELEASE, netbsd-7-0-1-RELEASE, netbsd-7-0, netbsd-7
Changes since 1.229: +6 -6 lines
Diff to previous 1.229 (colored) to selected 1.204 (colored)

Put .INCLUDEDFROM* in the right section

Revision 1.229 / (download) - annotate - [select for diffs], Sun Jan 19 10:23:29 2014 UTC (10 years, 2 months ago) by apb
Branch: MAIN
Changes since 1.228: +11 -2 lines
Diff to previous 1.228 (colored) to selected 1.204 (colored)

Emphasise the fact that the regexp and replacement in :C/// are
subjected to variable expansion before regexp parsing.  This was already
documented if you read carefully enough, but more emphasis would have
helped me to figure out why I needed three or four backslashes where I
expected to need only two.

Revision 1.228 / (download) - annotate - [select for diffs], Fri Jan 10 16:28:34 2014 UTC (10 years, 2 months ago) by wiz
Branch: MAIN
Changes since 1.227: +2 -2 lines
Diff to previous 1.227 (colored) to selected 1.204 (colored)

Bump date for previous.

Revision 1.227 / (download) - annotate - [select for diffs], Fri Jan 10 16:12:52 2014 UTC (10 years, 2 months ago) by christos
Branch: MAIN
Changes since 1.226: +5 -1 lines
Diff to previous 1.226 (colored) to selected 1.204 (colored)

add .INCLUDEDFROM{FILE,DIR}

Revision 1.226 / (download) - annotate - [select for diffs], Thu Nov 7 18:50:46 2013 UTC (10 years, 4 months ago) by dholland
Branch: MAIN
Changes since 1.225: +2 -2 lines
Diff to previous 1.225 (colored) to selected 1.204 (colored)

apostrophe's do not make plural's.

Revision 1.225 / (download) - annotate - [select for diffs], Sun Oct 27 11:38:13 2013 UTC (10 years, 4 months ago) by wiz
Branch: MAIN
Changes since 1.224: +2 -2 lines
Diff to previous 1.224 (colored) to selected 1.204 (colored)

Remove trailing whitespace.

Revision 1.224 / (download) - annotate - [select for diffs], Fri Oct 25 22:05:00 2013 UTC (10 years, 4 months ago) by apb
Branch: MAIN
Changes since 1.223: +8 -1 lines
Diff to previous 1.223 (colored) to selected 1.204 (colored)

Explain that ${VAR:M*} will normalise the inter-word spacing.

Revision 1.223 / (download) - annotate - [select for diffs], Fri Oct 25 20:57:02 2013 UTC (10 years, 4 months ago) by apb
Branch: MAIN
Changes since 1.222: +3 -3 lines
Diff to previous 1.222 (colored) to selected 1.204 (colored)

The :C/// modifier takes an extendedregular expression.

Revision 1.222 / (download) - annotate - [select for diffs], Sun Aug 11 09:53:49 2013 UTC (10 years, 7 months ago) by apb
Branch: MAIN
Changes since 1.221: +3 -3 lines
Diff to previous 1.221 (colored) to selected 1.204 (colored)

Use Va markup to show that the "suffix" part of ".PATH.suffix"
is a placeholder, not a literal string.
Also bump date.

Revision 1.221 / (download) - annotate - [select for diffs], Sun Aug 11 04:40:58 2013 UTC (10 years, 7 months ago) by dholland
Branch: MAIN
Changes since 1.220: +7 -1 lines
Diff to previous 1.220 (colored) to selected 1.204 (colored)

Document .PATH.suffix:. Noted by apb back in December of 2008
(that's how long my queue is...)

Revision 1.220 / (download) - annotate - [select for diffs], Tue Jul 30 19:09:57 2013 UTC (10 years, 7 months ago) by sjg
Branch: MAIN
Changes since 1.219: +5 -2 lines
Diff to previous 1.219 (colored) to selected 1.204 (colored)

Allow an empty .MAKE.JOB.PREFIX to supress output of --- job --- tokens

Revision 1.219 / (download) - annotate - [select for diffs], Tue Jul 16 14:00:53 2013 UTC (10 years, 8 months ago) by christos
Branch: MAIN
CVS Tags: riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2
Changes since 1.218: +5 -3 lines
Diff to previous 1.218 (colored) to selected 1.204 (colored)

More gmake compatibility:
1. add -w flag to print Entering and Leaving directory name the the beginning
   and the end of processing.
2. export MAKELEVEL=$((MAKELEVEL + 1)) only in the child environment.
3. when printing error messages, prefix them with the program name [$MAKELEVEL]
   for $MAKELEVEL > 0
4. if $MAKEFLAGS consists only of letters assume it is a set of flags (as
   allowed by posix), convert them to -f -l -a -g -s, so that they get parsed
   properly.
With those fixes gmake -> bmake -> gmake -> bmake etc. works as expected.

Revision 1.218 / (download) - annotate - [select for diffs], Wed Jun 26 20:20:36 2013 UTC (10 years, 8 months ago) by agc
Branch: MAIN
Changes since 1.217: +2 -2 lines
Diff to previous 1.217 (colored) to selected 1.204 (colored)

fix a typo

Revision 1.217 / (download) - annotate - [select for diffs], Tue Jun 25 07:08:10 2013 UTC (10 years, 8 months ago) by wiz
Branch: MAIN
Changes since 1.216: +4 -4 lines
Diff to previous 1.216 (colored) to selected 1.204 (colored)

Remove trailing whitespace.

Revision 1.216 / (download) - annotate - [select for diffs], Tue Jun 25 00:20:54 2013 UTC (10 years, 8 months ago) by sjg
Branch: MAIN
Changes since 1.215: +7 -2 lines
Diff to previous 1.215 (colored) to selected 1.204 (colored)

Add .MAKE.META.IGNORE_PATHS to facilitate local additions to the paths
which should be ignored by meta_oodate().

Revision 1.215 / (download) - annotate - [select for diffs], Wed May 22 19:35:11 2013 UTC (10 years, 9 months ago) by christos
Branch: MAIN
Changes since 1.214: +3 -3 lines
Diff to previous 1.214 (colored) to selected 1.204 (colored)

improve wording

Revision 1.214 / (download) - annotate - [select for diffs], Wed May 22 19:30:35 2013 UTC (10 years, 9 months ago) by christos
Branch: MAIN
Changes since 1.213: +9 -2 lines
Diff to previous 1.213 (colored) to selected 1.204 (colored)

put a note on what FRC means.

Revision 1.213 / (download) - annotate - [select for diffs], Sun Mar 31 05:49:51 2013 UTC (10 years, 11 months ago) by sjg
Branch: MAIN
Changes since 1.212: +16 -2 lines
Diff to previous 1.212 (colored) to selected 1.204 (colored)

Refine the effect of .OODATE on command comparison.
Rather than apply it to the whole script, just the current command line
is affected.   This allows a trick like ${.OODATE:M.NOMETA_CMP}
to cause command comparison to be supressed for one command only.

Revision 1.212 / (download) - annotate - [select for diffs], Sat Mar 23 05:31:29 2013 UTC (10 years, 11 months ago) by sjg
Branch: MAIN
CVS Tags: agc-symver-base, agc-symver
Changes since 1.211: +9 -2 lines
Diff to previous 1.211 (colored) to selected 1.204 (colored)

If built with filemon support, set .MAKE.PATH_FILEMON to _PATH_FILEMON
so that makefiles can test for it.

Revision 1.211 / (download) - annotate - [select for diffs], Tue Mar 5 22:01:44 2013 UTC (11 years ago) by christos
Branch: MAIN
Changes since 1.210: +6 -2 lines
Diff to previous 1.210 (colored) to selected 1.204 (colored)

Add a .STALE special target that gets invoked when dependency files contain
stail entries.

Revision 1.210 / (download) - annotate - [select for diffs], Sun Jan 27 18:52:01 2013 UTC (11 years, 1 month ago) by sjg
Branch: MAIN
CVS Tags: dholland-make-base
Changes since 1.209: +46 -24 lines
Diff to previous 1.209 (colored) to selected 1.204 (colored)

In SHELL COMMANDS section, provide some clues about different
behavior in jobs vs non-jobs mode.
Move the comment about when shell is skipped to this discussion
from COMPATABILITY.
Remove the incorrect statement about default mode being somehow
neither jobs mode or compat mode (it is compat mode).

Revision 1.209 / (download) - annotate - [select for diffs], Mon Oct 8 15:09:48 2012 UTC (11 years, 5 months ago) by christos
Branch: MAIN
CVS Tags: yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6
Changes since 1.208: +3 -3 lines
Diff to previous 1.208 (colored) to selected 1.204 (colored)

It is Sprite, not Sprint; pointed out by Todd Miller.

Revision 1.208 / (download) - annotate - [select for diffs], Mon Sep 17 02:10:46 2012 UTC (11 years, 6 months ago) by christos
Branch: MAIN
Changes since 1.207: +2 -2 lines
Diff to previous 1.207 (colored) to selected 1.204 (colored)

spelling

Revision 1.207 / (download) - annotate - [select for diffs], Mon Sep 17 01:23:45 2012 UTC (11 years, 6 months ago) by sjg
Branch: MAIN
Changes since 1.206: +9 -2 lines
Diff to previous 1.206 (colored) to selected 1.204 (colored)

Document the fact that lack of shell meta chars in a command
results in direct exec in compat mode.

Revision 1.206 / (download) - annotate - [select for diffs], Thu Aug 30 22:35:37 2012 UTC (11 years, 6 months ago) by wiz
Branch: MAIN
Branch point for: tls-maxphys
Changes since 1.205: +2 -2 lines
Diff to previous 1.205 (colored) to selected 1.204 (colored)

Add an s.

Revision 1.205 / (download) - annotate - [select for diffs], Thu Aug 30 22:09:58 2012 UTC (11 years, 6 months ago) by sjg
Branch: MAIN
Changes since 1.204: +10 -2 lines
Diff to previous 1.204 (colored)

Add a knob to control whether -V fully expands a plain variable by default.
The default retains the traditional NetBSD behavior, but the knob
can be set so that FreeBSD can retain their expected behavior.
This is a compromise to be sure.

Add a debug flag -dV to override the above, so that regardless of
the knob setting, the raw value of a variable can be easily seen.

Revision 1.204 / (download) - annotate - [selected], Tue Apr 24 20:12:16 2012 UTC (11 years, 10 months ago) by sjg
Branch: MAIN
CVS Tags: yamt-pagecache-base5
Changes since 1.203: +3 -2 lines
Diff to previous 1.203 (colored)

Restore previous behavior - supressing duplicate entries in
.MAKE.MAKEFILES - it is more efficient.

Revision 1.203 / (download) - annotate - [select for diffs], Fri Apr 20 05:33:41 2012 UTC (11 years, 11 months ago) by sjg
Branch: MAIN
Changes since 1.202: +2 -3 lines
Diff to previous 1.202 (colored) to selected 1.204 (colored)

Fix some typos in/around ParseGmakeExport.
Remove the suppresssion of duplicate entries in .MAKE.MAKEFILES

Revision 1.202 / (download) - annotate - [select for diffs], Sun Apr 8 22:00:39 2012 UTC (11 years, 11 months ago) by wiz
Branch: MAIN
CVS Tags: yamt-pagecache-base4
Changes since 1.201: +1 -23 lines
Diff to previous 1.201 (colored) to selected 1.204 (colored)

Remove unnecessary Bk/Ek pairs from SYNOPSIS.
No effective change except where I used the opportunity to sort options
and/or option descriptions.

Revision 1.201 / (download) - annotate - [select for diffs], Sat Mar 31 14:46:16 2012 UTC (11 years, 11 months ago) by christos
Branch: MAIN
Changes since 1.200: +7 -2 lines
Diff to previous 1.200 (colored) to selected 1.204 (colored)

document gmake export command

Revision 1.200 / (download) - annotate - [select for diffs], Fri Feb 3 21:39:25 2012 UTC (12 years, 1 month ago) by sjg
Branch: MAIN
CVS Tags: netbsd-6-base, netbsd-6-1-RELEASE, netbsd-6-1-RC4, netbsd-6-1-RC3, netbsd-6-1-RC2, netbsd-6-1-RC1, netbsd-6-1-5-RELEASE, netbsd-6-1-4-RELEASE, netbsd-6-1-3-RELEASE, netbsd-6-1-2-RELEASE, netbsd-6-1-1-RELEASE, netbsd-6-1, netbsd-6-0-RELEASE, netbsd-6-0-RC2, netbsd-6-0-RC1, netbsd-6-0-6-RELEASE, netbsd-6-0-5-RELEASE, netbsd-6-0-4-RELEASE, netbsd-6-0-3-RELEASE, netbsd-6-0-2-RELEASE, netbsd-6-0-1-RELEASE, netbsd-6-0, netbsd-6, matt-nb6-plus-nbase, matt-nb6-plus-base, matt-nb6-plus
Changes since 1.199: +6 -2 lines
Diff to previous 1.199 (colored) to selected 1.204 (colored)

Fix description of 'silent' in .MAKE.MODE
Also document 'env' in that context.

Revision 1.199 / (download) - annotate - [select for diffs], Fri Dec 23 05:01:59 2011 UTC (12 years, 2 months ago) by sjg
Branch: MAIN
Changes since 1.198: +4 -2 lines
Diff to previous 1.198 (colored) to selected 1.204 (colored)

Mention limits of :P

Revision 1.198 / (download) - annotate - [select for diffs], Sat Dec 17 04:43:45 2011 UTC (12 years, 3 months ago) by sjg
Branch: MAIN
Changes since 1.197: +5 -2 lines
Diff to previous 1.197 (colored) to selected 1.204 (colored)

The :@ example gives the impression that we encourage the ODE
convention of naming loop variables like .LINK., when in fact
single char variables are far more common in NetBSD.

Revision 1.197 / (download) - annotate - [select for diffs], Sun Nov 13 18:18:35 2011 UTC (12 years, 4 months ago) by dholland
Branch: MAIN
Changes since 1.196: +2 -2 lines
Diff to previous 1.196 (colored) to selected 1.204 (colored)

Fix xref to the PSD; PR 45568 from Petri Laakso.

Revision 1.196 / (download) - annotate - [select for diffs], Sun Nov 6 19:50:46 2011 UTC (12 years, 4 months ago) by christos
Branch: MAIN
CVS Tags: yamt-pagecache-base3, yamt-pagecache-base2
Changes since 1.195: +5 -2 lines
Diff to previous 1.195 (colored) to selected 1.204 (colored)

explain how to use .PARSEDIR and .PARSEFILE

Revision 1.195 / (download) - annotate - [select for diffs], Sun Aug 28 03:54:07 2011 UTC (12 years, 6 months ago) by sjg
Branch: MAIN
CVS Tags: yamt-pagecache-base
Branch point for: yamt-pagecache
Changes since 1.194: +6 -2 lines
Diff to previous 1.194 (colored) to selected 1.204 (colored)

In meta mode, we create .meta files for most targets.
These capture all the interesting data - useful for debugging.
In such cases there is no need to replicate commands in the build log.
Rather than run the entire build .SILENT, allow meta mode to set that flag
per target iff a .meta file is created.
Normal behavior is retained for targets where no .meta file is created,
ensuring that no build data is lost.

Revision 1.194 / (download) - annotate - [select for diffs], Thu Aug 18 15:36:51 2011 UTC (12 years, 7 months ago) by sjg
Branch: MAIN
Changes since 1.193: +8 -7 lines
Diff to previous 1.193 (colored) to selected 1.204 (colored)

Make some dashes em-dashes (based on patch from Andrew O. Shadoura).
Note behavior of .META flag wrt out-of-date.

Revision 1.193 / (download) - annotate - [select for diffs], Thu Jun 30 20:09:42 2011 UTC (12 years, 8 months ago) by wiz
Branch: MAIN
Changes since 1.192: +2 -2 lines
Diff to previous 1.192 (colored) to selected 1.204 (colored)

dependant -> dependent

Revision 1.192 / (download) - annotate - [select for diffs], Sat May 28 21:53:54 2011 UTC (12 years, 9 months ago) by cheusov
Branch: MAIN
CVS Tags: cherry-xenmp-base, cherry-xenmp
Changes since 1.191: +3 -3 lines
Diff to previous 1.191 (colored) to selected 1.204 (colored)

fix bug in section .ORDER of make.1

Revision 1.191 / (download) - annotate - [select for diffs], Wed May 4 21:24:59 2011 UTC (12 years, 10 months ago) by wiz
Branch: MAIN
Changes since 1.190: +2 -2 lines
Diff to previous 1.190 (colored) to selected 1.204 (colored)

Remove trailing whitespace.

Revision 1.190 / (download) - annotate - [select for diffs], Wed May 4 21:14:56 2011 UTC (12 years, 10 months ago) by christos
Branch: MAIN
Changes since 1.189: +23 -1 lines
Diff to previous 1.189 (colored) to selected 1.204 (colored)

Document what I wrote for PR/40115

Revision 1.189 / (download) - annotate - [select for diffs], Wed May 4 20:38:32 2011 UTC (12 years, 10 months ago) by sjg
Branch: MAIN
Changes since 1.188: +10 -2 lines
Diff to previous 1.188 (colored) to selected 1.204 (colored)

Add .MAKE.META.BAILIWICK - to identify the scope of make's control.
meta_oodate: if a file that was written or linked within our bailiwick,
but outside of .OBJDIR is missing, add it to missingFiles.
If we get to the end of the .meta file without seeing it [re]moved,
then consider the target out-of-date.

Revision 1.188 / (download) - annotate - [select for diffs], Mon Apr 11 06:56:50 2011 UTC (12 years, 11 months ago) by wiz
Branch: MAIN
Changes since 1.187: +6 -6 lines
Diff to previous 1.187 (colored) to selected 1.204 (colored)

Remove trailing whitespace.

Revision 1.187 / (download) - annotate - [select for diffs], Mon Apr 11 01:44:15 2011 UTC (12 years, 11 months ago) by sjg
Branch: MAIN
Changes since 1.186: +12 -2 lines
Diff to previous 1.186 (colored) to selected 1.204 (colored)

Add :localtime and :gmtime which use value as format string for strftime.

Revision 1.186 / (download) - annotate - [select for diffs], Thu Apr 7 01:40:01 2011 UTC (12 years, 11 months ago) by joerg
Branch: MAIN
Changes since 1.185: +4 -2 lines
Diff to previous 1.185 (colored) to selected 1.204 (colored)

Add the :hash modifier to compute a 32bit hash of an variable.
This uses MurmurHash3 to get a reasonable collission-free hash with
small code. The result is endian neutral.

Revision 1.185 / (download) - annotate - [select for diffs], Sun Mar 27 19:47:46 2011 UTC (12 years, 11 months ago) by sjg
Branch: MAIN
Changes since 1.184: +2 -2 lines
Diff to previous 1.184 (colored) to selected 1.204 (colored)

Use curdirOk as the token

Revision 1.184 / (download) - annotate - [select for diffs], Sun Mar 27 19:39:21 2011 UTC (12 years, 11 months ago) by sjg
Branch: MAIN
Changes since 1.183: +11 -3 lines
Diff to previous 1.183 (colored) to selected 1.204 (colored)

When .MAKE.MODE inlcudes 'meta'; 'curdir=true' enables creating .meta
files in .CURDIR - such as when running make in .OBJDIR with a generated
makefile.

Revision 1.183 / (download) - annotate - [select for diffs], Sat Feb 26 01:17:24 2011 UTC (13 years ago) by sjg
Branch: MAIN
CVS Tags: bouyer-quota2-nbase
Changes since 1.182: +3 -3 lines
Diff to previous 1.182 (colored) to selected 1.204 (colored)

Fix rendering of :? example

Revision 1.182 / (download) - annotate - [select for diffs], Tue Sep 14 11:57:03 2010 UTC (13 years, 6 months ago) by wiz
Branch: MAIN
CVS Tags: matt-mips64-premerge-20101231, bouyer-quota2-base
Branch point for: bouyer-quota2
Changes since 1.181: +9 -9 lines
Diff to previous 1.181 (colored) to selected 1.204 (colored)

Remove trailing spaces, add a few serial commas.

Revision 1.181 / (download) - annotate - [select for diffs], Mon Sep 13 16:32:00 2010 UTC (13 years, 6 months ago) by sjg
Branch: MAIN
Changes since 1.180: +2 -2 lines
Diff to previous 1.180 (colored) to selected 1.204 (colored)

Bump date

Revision 1.180 / (download) - annotate - [select for diffs], Mon Sep 13 15:36:57 2010 UTC (13 years, 6 months ago) by sjg
Branch: MAIN
Changes since 1.179: +69 -4 lines
Diff to previous 1.179 (colored) to selected 1.204 (colored)

Add meta.c which implements "meta" mode for make.
In this mode, a .meta file is created for each target, capturing
the expanded commands used, any command output, and if filemon(9)
is available, a record of system calls which are of interest.
Not enabled unless USE_META=yes is set when building make.
Also, if FILEMON_H exists, meta.c will be compiled to use filemon(9).

Revision 1.179 / (download) - annotate - [select for diffs], Wed Jun 30 01:03:54 2010 UTC (13 years, 8 months ago) by dholland
Branch: MAIN
Changes since 1.178: +7 -2 lines
Diff to previous 1.178 (colored) to selected 1.204 (colored)

Document that suffix rules are not applied to PHONY targets, and also
document the .TARGETS builtin variable, which has existed since 4.4 days.
Bump date. Arises from discussion in PR 43502.

Revision 1.178 / (download) - annotate - [select for diffs], Sun Jun 27 00:53:32 2010 UTC (13 years, 8 months ago) by dholland
Branch: MAIN
Changes since 1.177: +0 -2 lines
Diff to previous 1.177 (colored) to selected 1.204 (colored)

fix previous, the source isn't exactly crystal clear and there's a bug that
makes the behavior misleading.

Revision 1.177 / (download) - annotate - [select for diffs], Sun Jun 27 00:06:32 2010 UTC (13 years, 8 months ago) by dholland
Branch: MAIN
Changes since 1.176: +5 -3 lines
Diff to previous 1.176 (colored) to selected 1.204 (colored)

Clarify $(.PREFIX) / $*. Bump date.

Revision 1.176 / (download) - annotate - [select for diffs], Thu Jun 10 18:35:22 2010 UTC (13 years, 9 months ago) by wiz
Branch: MAIN
Changes since 1.175: +9 -9 lines
Diff to previous 1.175 (colored) to selected 1.204 (colored)

Whitespace.

Revision 1.175 / (download) - annotate - [select for diffs], Wed Jun 9 16:58:22 2010 UTC (13 years, 9 months ago) by christos
Branch: MAIN
Changes since 1.174: +40 -3 lines
Diff to previous 1.174 (colored) to selected 1.204 (colored)

Explain variable expansion better. Requested by Aleksey Cheusov

Revision 1.174 / (download) - annotate - [select for diffs], Sun Jun 6 17:28:48 2010 UTC (13 years, 9 months ago) by wiz
Branch: MAIN
Changes since 1.173: +2 -2 lines
Diff to previous 1.173 (colored) to selected 1.204 (colored)

Bump date for previous.

Revision 1.173 / (download) - annotate - [select for diffs], Sun Jun 6 01:13:12 2010 UTC (13 years, 9 months ago) by sjg
Branch: MAIN
Changes since 1.172: +13 -2 lines
Diff to previous 1.172 (colored) to selected 1.204 (colored)

Add .export-env which tells make to export a variable to the environment
but not to track it - as is done for .export
This allows the variable to be updated without affecting what was put
into the environment.
Older versions of make will simply treat this as .export

Revision 1.172 / (download) - annotate - [select for diffs], Thu May 13 18:10:16 2010 UTC (13 years, 10 months ago) by joerg
Branch: MAIN
Changes since 1.171: +3 -3 lines
Diff to previous 1.171 (colored) to selected 1.204 (colored)

Drop trailing white space. Use .Oo / .Oc explicitly to annotate that the
empty content is intended.

Revision 1.171 / (download) - annotate - [select for diffs], Thu Apr 22 19:15:23 2010 UTC (13 years, 10 months ago) by sjg
Branch: MAIN
Changes since 1.170: +6 -2 lines
Diff to previous 1.170 (colored) to selected 1.204 (colored)

PR: 42850
Reviewed by:

modmisc: since we apply an exists() test to $paths, be conservative
in what we expect.

Run the unit tests with -r -m / so that we do not fail if there
is no sys.mk present.

Revision 1.170 / (download) - annotate - [select for diffs], Thu Apr 15 03:48:39 2010 UTC (13 years, 11 months ago) by sjg
Branch: MAIN
Changes since 1.169: +7 -2 lines
Diff to previous 1.169 (colored) to selected 1.204 (colored)

Add :tA to attempt to resolve to absoute path using realpath().

Revision 1.169 / (download) - annotate - [select for diffs], Wed Apr 7 06:45:21 2010 UTC (13 years, 11 months ago) by wiz
Branch: MAIN
Changes since 1.168: +44 -44 lines
Diff to previous 1.168 (colored) to selected 1.204 (colored)

Sort a bit more.

Revision 1.168 / (download) - annotate - [select for diffs], Wed Apr 7 00:11:27 2010 UTC (13 years, 11 months ago) by sjg
Branch: MAIN
Changes since 1.167: +40 -2 lines
Diff to previous 1.167 (colored) to selected 1.204 (colored)

Add:

.error "message"
.warning "message"
	based on FreeBSD implementation.
	add .info while were at it.

.ERROR:	a target to run on error.
	We pass the failing GNode to PrintOnError so it can set
	.ERROR_TARGET.

.MAKE.MAKEFILE_PREFERENCE
	As a means to control make's list of prefered makefile names.
	(Default: "makefile Makefile")

.MAKE.DEPENDFILE
	Names the file to read dependencies from
	(Default ".depend")

.MAKE.MODE
	Processed after all makefiles are read.
	Can put make into "compat" mode (more to come).

Fix:

compat.c: Error code should not be sent to debug_file.
Make_DoAllVar: use DONE_ALLSRC to avoid processing a node multiple times.
ReadMakefile: we can simply use doing_depend to control setting MAKEFILE.

Revision 1.167 / (download) - annotate - [select for diffs], Mon Feb 22 19:20:33 2010 UTC (14 years ago) by joerg
Branch: MAIN
Changes since 1.166: +5 -5 lines
Diff to previous 1.166 (colored) to selected 1.204 (colored)

\\ -> \e

Revision 1.166 / (download) - annotate - [select for diffs], Thu Nov 19 06:48:37 2009 UTC (14 years, 4 months ago) by wiz
Branch: MAIN
CVS Tags: matt-premerge-20091211
Changes since 1.165: +10 -9 lines
Diff to previous 1.165 (colored) to selected 1.204 (colored)

New sentence, new line; remove trailing whitespace.

Revision 1.165 / (download) - annotate - [select for diffs], Thu Nov 19 00:30:24 2009 UTC (14 years, 4 months ago) by sjg
Branch: MAIN
Changes since 1.164: +40 -4 lines
Diff to previous 1.164 (colored) to selected 1.204 (colored)

Add .unexport - the exact opposite of .export
and .unexport-env which unexport's all previously .export'd globals
as well as clearing environ[].
Allow's sys.mk near total controll.

Reviewed by: apb

Revision 1.164 / (download) - annotate - [select for diffs], Thu Oct 15 02:27:44 2009 UTC (14 years, 5 months ago) by joerg
Branch: MAIN
Changes since 1.163: +15 -69 lines
Diff to previous 1.163 (colored) to selected 1.204 (colored)

Do not work around ancient groff limits with .Xo/.Xc.

Revision 1.163 / (download) - annotate - [select for diffs], Fri Oct 2 07:43:15 2009 UTC (14 years, 5 months ago) by wiz
Branch: MAIN
Changes since 1.162: +3 -3 lines
Diff to previous 1.162 (colored) to selected 1.204 (colored)

Remove trailing whitespace.

Revision 1.162 / (download) - annotate - [select for diffs], Thu Oct 1 21:40:31 2009 UTC (14 years, 5 months ago) by dsl
Branch: MAIN
Changes since 1.161: +7 -4 lines
Diff to previous 1.161 (colored) to selected 1.204 (colored)

Add example of how to use the ?: modifier properly.

Revision 1.161 / (download) - annotate - [select for diffs], Tue Sep 8 17:29:20 2009 UTC (14 years, 6 months ago) by sjg
Branch: MAIN
Changes since 1.160: +13 -2 lines
Diff to previous 1.160 (colored) to selected 1.204 (colored)

Reviewed by: apb

Use .MAKE.LEVEL to track recursion.
The first instance of make will have .MAKE.LEVEL 0, which
can be handy for excluding rules which should not apply
in a sub-make.
gmake and freebsd's make have a similar mechanism, but each
uses a different variable to track it.  Since we cannot be
compatible with both, we allow the makefiles to cope if they want
by handling the export of .MAKE.LEVEL+1 in Var_Set().

Revision 1.160 / (download) - annotate - [select for diffs], Wed Aug 26 23:18:57 2009 UTC (14 years, 6 months ago) by sjg
Branch: MAIN
Changes since 1.159: +2 -2 lines
Diff to previous 1.159 (colored) to selected 1.204 (colored)

Bump date

Revision 1.159 / (download) - annotate - [select for diffs], Wed Aug 26 23:17:11 2009 UTC (14 years, 6 months ago) by sjg
Branch: MAIN
Changes since 1.158: +14 -1 lines
Diff to previous 1.158 (colored) to selected 1.204 (colored)

Add -C directory, same as gmake and freebsd make.

Revision 1.158 / (download) - annotate - [select for diffs], Mon Jun 1 23:28:39 2009 UTC (14 years, 9 months ago) by sjg
Branch: MAIN
Changes since 1.157: +3 -3 lines
Diff to previous 1.157 (colored) to selected 1.204 (colored)

Missing ':' in .ORDER example

Revision 1.157 / (download) - annotate - [select for diffs], Wed May 13 22:56:42 2009 UTC (14 years, 10 months ago) by wiz
Branch: MAIN
Changes since 1.156: +2 -3 lines
Diff to previous 1.156 (colored) to selected 1.204 (colored)

Whitespace fix.

Revision 1.156 / (download) - annotate - [select for diffs], Sat Apr 11 15:51:42 2009 UTC (14 years, 11 months ago) by snj
Branch: MAIN
CVS Tags: jym-xensuspend-nbase, jym-xensuspend-base
Changes since 1.155: +2 -2 lines
Diff to previous 1.155 (colored) to selected 1.204 (colored)

Typo fix: many file -> many files.

Revision 1.155 / (download) - annotate - [select for diffs], Sat Apr 11 09:44:22 2009 UTC (14 years, 11 months ago) by wiz
Branch: MAIN
Changes since 1.154: +2 -2 lines
Diff to previous 1.154 (colored) to selected 1.204 (colored)

Bump date for previous.

Revision 1.154 / (download) - annotate - [select for diffs], Sat Apr 11 09:41:18 2009 UTC (14 years, 11 months ago) by apb
Branch: MAIN
Changes since 1.153: +17 -8 lines
Diff to previous 1.153 (colored) to selected 1.204 (colored)

Honour the TMPDIR environment variable instead of always using /tmp
as a place to store temporary files.

Revision 1.153 / (download) - annotate - [select for diffs], Sat Jan 24 13:02:33 2009 UTC (15 years, 1 month ago) by wiz
Branch: MAIN
Branch point for: jym-xensuspend
Changes since 1.152: +9 -9 lines
Diff to previous 1.152 (colored) to selected 1.204 (colored)

Sort sections. Fix typo (last line).

Revision 1.152 / (download) - annotate - [select for diffs], Sat Jan 24 11:56:41 2009 UTC (15 years, 1 month ago) by dsl
Branch: MAIN
Changes since 1.151: +26 -38 lines
Diff to previous 1.151 (colored) to selected 1.204 (colored)

Correct the definition of the :? modifier - in particular the modifier
applies to the variable name, not its value!
Remove the set of examples that were recently added that failed to
explain why some worked and some didn't.
Add a not to the compatability section about the change in .for loop
substitution post 5.0.
Add a BUGS section.
XXX the BUGS section needs more entries :-)

Revision 1.151 / (download) - annotate - [select for diffs], Mon Jan 12 09:28:10 2009 UTC (15 years, 2 months ago) by dholland
Branch: MAIN
Changes since 1.150: +2 -2 lines
Diff to previous 1.150 (colored) to selected 1.204 (colored)

Fix blatantly wrong exposition of .WAIT example.
PR bin/40372 from Gao Ya'nan.

Revision 1.150 / (download) - annotate - [select for diffs], Sun Dec 21 21:05:27 2008 UTC (15 years, 2 months ago) by dsl
Branch: MAIN
Changes since 1.149: +6 -5 lines
Diff to previous 1.149 (colored) to selected 1.204 (colored)

Note that an unrecognised word in a .if is the same as in .ifdef and that
such a word has to be white-space separated.
From PR bin/30967 bin/37222 and maybe others!

Revision 1.149 / (download) - annotate - [select for diffs], Sun Dec 21 19:32:16 2008 UTC (15 years, 3 months ago) by dsl
Branch: MAIN
Changes since 1.148: +13 -16 lines
Diff to previous 1.148 (colored) to selected 1.204 (colored)

Add some notes about recursive expansion and expansion of variable names.
Note that any of "${}()" in variable names will be griefsome!
Remove the example of using ::= to apply a modifier to a .for loop
variable as that is no longer necessary.
Remember to change the date :-)

Revision 1.148 / (download) - annotate - [select for diffs], Sun Dec 7 16:10:34 2008 UTC (15 years, 3 months ago) by christos
Branch: MAIN
Changes since 1.147: +9 -1 lines
Diff to previous 1.147 (colored) to selected 1.204 (colored)

explain compatibility mode better.

Revision 1.147 / (download) - annotate - [select for diffs], Sun Dec 7 04:50:15 2008 UTC (15 years, 3 months ago) by christos
Branch: MAIN
Changes since 1.146: +4 -2 lines
Diff to previous 1.146 (colored) to selected 1.204 (colored)

add debug flag for cwd.

Revision 1.146 / (download) - annotate - [select for diffs], Wed Nov 26 19:08:05 2008 UTC (15 years, 3 months ago) by wiz
Branch: MAIN
Changes since 1.145: +6 -4 lines
Diff to previous 1.145 (colored) to selected 1.204 (colored)

I think ':' is called "colon", not "column" :)

Revision 1.145 / (download) - annotate - [select for diffs], Tue Nov 25 20:34:19 2008 UTC (15 years, 3 months ago) by christos
Branch: MAIN
Changes since 1.144: +11 -3 lines
Diff to previous 1.144 (colored) to selected 1.204 (colored)

PR/40026: Aleksej Saushev: make(1) doesn't document VPATH, document it.

Revision 1.144 / (download) - annotate - [select for diffs], Thu Oct 30 08:44:18 2008 UTC (15 years, 4 months ago) by wiz
Branch: MAIN
CVS Tags: netbsd-5-base
Branch point for: netbsd-5
Changes since 1.143: +5 -4 lines
Diff to previous 1.143 (colored) to selected 1.204 (colored)

Whitespace.

Revision 1.143 / (download) - annotate - [select for diffs], Thu Oct 30 00:40:42 2008 UTC (15 years, 4 months ago) by sjg
Branch: MAIN
Changes since 1.142: +2 -2 lines
Diff to previous 1.142 (colored) to selected 1.204 (colored)

Update the modification date

Revision 1.142 / (download) - annotate - [select for diffs], Wed Oct 29 23:30:08 2008 UTC (15 years, 4 months ago) by sjg
Branch: MAIN
Changes since 1.141: +34 -1 lines
Diff to previous 1.141 (colored) to selected 1.204 (colored)

Add some examples of how to use :?

Revision 1.141 / (download) - annotate - [select for diffs], Wed Oct 22 15:04:49 2008 UTC (15 years, 4 months ago) by apb
Branch: MAIN
CVS Tags: matt-mips64-base2
Changes since 1.140: +3 -3 lines
Diff to previous 1.140 (colored) to selected 1.204 (colored)

Send debugging output to stderr by default, not to stderr.
If you really want debugging to stdout, specify "-dFstdout"
in MAKEFLAGS or on the command line.

Discussed in tech-userlevel.

Revision 1.140 / (download) - annotate - [select for diffs], Sun Oct 19 16:59:08 2008 UTC (15 years, 5 months ago) by wiz
Branch: MAIN
Changes since 1.139: +2 -2 lines
Diff to previous 1.139 (colored) to selected 1.204 (colored)

Add missing dot before macro.

Revision 1.139 / (download) - annotate - [select for diffs], Sun Oct 19 08:30:10 2008 UTC (15 years, 5 months ago) by apb
Branch: MAIN
Changes since 1.138: +5 -2 lines
Diff to previous 1.138 (colored) to selected 1.204 (colored)

Always make the debugging output unbuffered; in addition, if debugging
is enabled but debugging output is not directed to stdout, then make
stdout line buffered.

Previously, the code to make debug output unbuffered applied only if
debugging to a file, not if debugging to stdout or stderr.  Making
stdout line buffered when debugging was suggested by Steven Bellovin.

Revision 1.138 / (download) - annotate - [select for diffs], Sat Oct 18 14:36:40 2008 UTC (15 years, 5 months ago) by apb
Branch: MAIN
Changes since 1.137: +27 -7 lines
Diff to previous 1.137 (colored) to selected 1.204 (colored)

Document how "-dF[+]filename" works.

Revision 1.137 / (download) - annotate - [select for diffs], Sun Aug 10 23:25:50 2008 UTC (15 years, 7 months ago) by wiz
Branch: MAIN
CVS Tags: wrstuden-revivesa-base-3, wrstuden-revivesa-base-2
Changes since 1.136: +26 -15 lines
Diff to previous 1.136 (colored) to selected 1.204 (colored)

Drop trailing whitespace. Use .Dq.

Revision 1.136 / (download) - annotate - [select for diffs], Sun Aug 10 19:47:29 2008 UTC (15 years, 7 months ago) by cube
Branch: MAIN
Changes since 1.135: +13 -4 lines
Diff to previous 1.135 (colored) to selected 1.204 (colored)

Clarify a bit .SUFFIXES and .IMPSRC.  Should fix PR#37822.

Revision 1.135 / (download) - annotate - [select for diffs], Sat Jan 19 06:52:14 2008 UTC (16 years, 2 months ago) by sjg
Branch: MAIN
CVS Tags: yamt-pf42-baseX, yamt-pf42-base4, yamt-pf42-base3, yamt-pf42-base2, yamt-pf42-base, yamt-pf42, wrstuden-revivesa-base-1, wrstuden-revivesa-base, matt-armv6-nbase, keiichi-mipv6-nbase, keiichi-mipv6-base, keiichi-mipv6, hpcarm-cleanup-nbase, hpcarm-cleanup-base, christos-broken
Branch point for: wrstuden-revivesa
Changes since 1.134: +6 -1 lines
Diff to previous 1.134 (colored) to selected 1.204 (colored)

Implement -dl (aka LOUD) to override '@' at the start of script lines.
Based on supplied patch.

PR: 37202

Revision 1.134 / (download) - annotate - [select for diffs], Mon Oct 8 20:26:36 2007 UTC (16 years, 5 months ago) by sjg
Branch: MAIN
CVS Tags: matt-armv6-base, cube-autoconf-base, cube-autoconf
Changes since 1.133: +9 -1 lines
Diff to previous 1.133 (colored) to selected 1.204 (colored)

Use .MAKE.MAKEFILES to track all the makefiles that have been read
so they can be used in dependency rules.

Revision 1.133 / (download) - annotate - [select for diffs], Fri Oct 5 15:27:45 2007 UTC (16 years, 5 months ago) by sjg
Branch: MAIN
Changes since 1.132: +13 -1 lines
Diff to previous 1.132 (colored) to selected 1.204 (colored)

Add the ability to .export variables to the environment.

Revision 1.132 / (download) - annotate - [select for diffs], Mon Oct 1 22:14:10 2007 UTC (16 years, 5 months ago) by sjg
Branch: MAIN
Changes since 1.131: +22 -1 lines
Diff to previous 1.131 (colored) to selected 1.204 (colored)

Add the ability to tweak the token output before targets in job mode.
Eg.
.MAKE.JOB.PREFIX=${.newline}---${.MAKE:T}[${.MAKE.PID}]
would produce
---make[1234] target ---

Revision 1.131 / (download) - annotate - [select for diffs], Mon Aug 13 06:14:08 2007 UTC (16 years, 7 months ago) by rillig
Branch: MAIN
Branch point for: matt-armv6
Changes since 1.130: +2 -2 lines
Diff to previous 1.130 (colored) to selected 1.204 (colored)

A small word can sometimes express things clearer ...

Revision 1.130 / (download) - annotate - [select for diffs], Tue Jan 23 22:23:48 2007 UTC (17 years, 1 month ago) by wiz
Branch: MAIN
CVS Tags: matt-mips64-base, matt-mips64, hpcarm-cleanup
Changes since 1.129: +2 -2 lines
Diff to previous 1.129 (colored) to selected 1.204 (colored)

4 -> 4.0, since Nx does not accept all arguments without complaint.

Revision 1.129 / (download) - annotate - [select for diffs], Sat Dec 23 07:25:41 2006 UTC (17 years, 2 months ago) by wiz
Branch: MAIN
Changes since 1.128: +6 -5 lines
Diff to previous 1.128 (colored) to selected 1.204 (colored)

Fix a typo. Use Nx.

Revision 1.128 / (download) - annotate - [select for diffs], Sun Nov 19 10:08:18 2006 UTC (17 years, 4 months ago) by dsl
Branch: MAIN
CVS Tags: netbsd-4-base
Branch point for: wrstuden-fixsa, netbsd-4
Changes since 1.127: +70 -14 lines
Diff to previous 1.127 (colored) to selected 1.204 (colored)

Update information on .ORDER and .WAIT.
Document the -d-flags and -dFfilename.%d options.
Mention MAKEFLAGS at the top, reword to make it clear that makefile and
Makefile are only used if no -f makefile is given.

Revision 1.127 / (download) - annotate - [select for diffs], Thu Jun 29 22:01:17 2006 UTC (17 years, 8 months ago) by rillig
Branch: MAIN
CVS Tags: abandoned-netbsd-4-base, abandoned-netbsd-4
Changes since 1.126: +6 -3 lines
Diff to previous 1.126 (colored) to selected 1.204 (colored)

Fixed the bug reported in PR 33866, which is that the :Q operator does not
handle newlines correctly. Ok'ed by christos.

Revision 1.126 / (download) - annotate - [select for diffs], Sat Jun 17 02:15:22 2006 UTC (17 years, 9 months ago) by reed
Branch: MAIN
CVS Tags: chap-midi-nbase, chap-midi-base
Changes since 1.125: +2 -2 lines
Diff to previous 1.125 (colored) to selected 1.204 (colored)

Fix mispelling.

Revision 1.125 / (download) - annotate - [select for diffs], Sun Mar 19 10:45:03 2006 UTC (18 years ago) by wiz
Branch: MAIN
Branch point for: chap-midi
Changes since 1.124: +3 -2 lines
Diff to previous 1.124 (colored) to selected 1.204 (colored)

New sentence, new line.

Revision 1.124 / (download) - annotate - [select for diffs], Sun Mar 19 01:53:01 2006 UTC (18 years ago) by sjg
Branch: MAIN
Changes since 1.123: +6 -2 lines
Diff to previous 1.123 (colored) to selected 1.204 (colored)

Document an interesting kwirk in := handling of undefined variables.

Revision 1.123 / (download) - annotate - [select for diffs], Sat Mar 11 12:02:20 2006 UTC (18 years ago) by wiz
Branch: MAIN
Changes since 1.122: +5 -3 lines
Diff to previous 1.122 (colored) to selected 1.204 (colored)

Markup fixes.

Revision 1.122 / (download) - annotate - [select for diffs], Sun Feb 26 22:45:46 2006 UTC (18 years ago) by apb
Branch: MAIN
Changes since 1.121: +10 -1 lines
Diff to previous 1.121 (colored) to selected 1.204 (colored)

Make ".WAIT" apply recursively to all children of nodes on the right
hand side of the .WAIT, except when the recursive interpretation would
cause a cycle in the dependency graph.

Discussed in tech-toolchain.  Reviewed by christos, sjg.

Revision 1.121 / (download) - annotate - [select for diffs], Sun Feb 26 22:40:50 2006 UTC (18 years ago) by wiz
Branch: MAIN
Changes since 1.120: +2 -2 lines
Diff to previous 1.120 (colored) to selected 1.204 (colored)

Fix typo.

Revision 1.120 / (download) - annotate - [select for diffs], Sun Feb 26 21:43:00 2006 UTC (18 years ago) by sjg
Branch: MAIN
Changes since 1.119: +16 -3 lines
Diff to previous 1.119 (colored) to selected 1.204 (colored)

Update man page and add test case for specifying modifiers via variable.
Also allow said variable to appear anywhere in the modifier list.

Revision 1.119 / (download) - annotate - [select for diffs], Sun Jan 22 19:54:55 2006 UTC (18 years, 1 month ago) by dsl
Branch: MAIN
Changes since 1.118: +4 -2 lines
Diff to previous 1.118 (colored) to selected 1.204 (colored)

Make .NOTPARALLEL stop the job engine issuing more than one token (instead
of trying to de-jobify the make.
You can now put .NOTPARALLEL in a submake of a recursive make (where it is
using a job-token pipe from the outer make and have it only run a single job.
You can also specify .NOTPARRALEL in the root makefile of a large recursive
make and have the submakes run multiple commands.
Add some diagnostics printfs (enabled with -dp) to the parser.

Revision 1.118 / (download) - annotate - [select for diffs], Mon Jun 27 09:51:09 2005 UTC (18 years, 8 months ago) by wiz
Branch: MAIN
Changes since 1.117: +5 -5 lines
Diff to previous 1.117 (colored) to selected 1.204 (colored)

Consistency. Use Pp instead of br.

Revision 1.117 / (download) - annotate - [select for diffs], Mon Jun 27 00:17:08 2005 UTC (18 years, 8 months ago) by lukem
Branch: MAIN
Changes since 1.116: +56 -15 lines
Diff to previous 1.116 (colored) to selected 1.204 (colored)

Restore the rework from rev 1.115 and expand the description of .OBJDIR
to document the behaviour that is currently in use (the "./obj" and
"/usr/obj/`pwd`" behaviour).
Hopefully the existing .OBJDIR behaviour is clearer now.

Revision 1.116 / (download) - annotate - [select for diffs], Sun Jun 26 10:14:43 2005 UTC (18 years, 8 months ago) by wiz
Branch: MAIN
Changes since 1.115: +16 -39 lines
Diff to previous 1.115 (colored) to selected 1.204 (colored)

Since the obj dir handling changes in the code have been
reverted, revert them in the man page too (i.e., revert v1.115).

Revision 1.115 / (download) - annotate - [select for diffs], Thu Jun 23 02:31:31 2005 UTC (18 years, 9 months ago) by lukem
Branch: MAIN
Changes since 1.114: +39 -16 lines
Diff to previous 1.114 (colored) to selected 1.204 (colored)

Deprecate support for automagically setting the .OBJDIR to
	./obj.${MACHINE}
	./obj
	/usr/obj/${PWD}

The rules for the default .OBJDIR setting are now simplified to
(and documented as) trying the chdir to the following
(if the appropriate variable is defined):
	${MAKEOBJDIRPREFIX}${.CURDIR}
	${MAKEOBJDIR}
	${.CURDIR}

.OBJDIR can be overridden in the makefile.
<bsd.obj.mk> uses this to provide the "culled" .OBJDIR semantics
for NetBSD's /usr/src builds.

MAKEOBJDIRPREFIX & MAKEOBJDIR still can only be provided
in the environment or on make(1)'s command line.

Per discussion on tech-toolchain.
This should reduce a lot of lossage people have experienced over
the years with various .OBJDIR setups.

Revision 1.114 / (download) - annotate - [select for diffs], Sun Jun 19 17:26:07 2005 UTC (18 years, 9 months ago) by wiz
Branch: MAIN
Changes since 1.113: +3 -3 lines
Diff to previous 1.113 (colored) to selected 1.204 (colored)

Fix an article, and drop trailing whitespace.

Revision 1.113 / (download) - annotate - [select for diffs], Sat Jun 18 14:34:55 2005 UTC (18 years, 9 months ago) by rpaulo
Branch: MAIN
Changes since 1.112: +2 -2 lines
Diff to previous 1.112 (colored) to selected 1.204 (colored)

Change "non-escaped" to "unescaped".
Reviewed by hubertf.

Revision 1.112 / (download) - annotate - [select for diffs], Fri Jun 17 19:30:49 2005 UTC (18 years, 9 months ago) by wiz
Branch: MAIN
Changes since 1.111: +8 -5 lines
Diff to previous 1.111 (colored) to selected 1.204 (colored)

Bump date for -jn, and add some formatting.

Revision 1.111 / (download) - annotate - [select for diffs], Fri Jun 17 19:25:20 2005 UTC (18 years, 9 months ago) by jmc
Branch: MAIN
Changes since 1.110: +8 -1 lines
Diff to previous 1.110 (colored) to selected 1.204 (colored)

Add new debugging option '-dn' which will leave the scripts fed into make on
-j jobs in /tmp for debugging purposes. Add a note to the man page that
this could cause problems if run a lot (due to the number of files created)

Revision 1.110 / (download) - annotate - [select for diffs], Wed Jun 15 22:39:27 2005 UTC (18 years, 9 months ago) by rpaulo
Branch: MAIN
Changes since 1.109: +2 -2 lines
Diff to previous 1.109 (colored) to selected 1.204 (colored)

We now support comments until the end of a non-escaped line.
Ok'ed by hubertf.

Revision 1.109 / (download) - annotate - [select for diffs], Wed Jun 1 17:33:21 2005 UTC (18 years, 9 months ago) by wiz
Branch: MAIN
Changes since 1.108: +14 -11 lines
Diff to previous 1.108 (colored) to selected 1.204 (colored)

New sentence, new line; grammar improvements.

Revision 1.108 / (download) - annotate - [select for diffs], Wed Jun 1 17:17:34 2005 UTC (18 years, 9 months ago) by sjg
Branch: MAIN
Changes since 1.107: +31 -3 lines
Diff to previous 1.107 (colored) to selected 1.204 (colored)

Add :Ox for random ordering, based on patch from
Mike M. Volokhov <mishka@apk.od.ua>

Revision 1.107 / (download) - annotate - [select for diffs], Sun May 8 00:38:47 2005 UTC (18 years, 10 months ago) by christos
Branch: MAIN
Changes since 1.106: +2 -8 lines
Diff to previous 1.106 (colored) to selected 1.204 (colored)

Now that dependencies in .BEGIN, .END, and .INTERRUPT work, allow them.

Revision 1.106 / (download) - annotate - [select for diffs], Sun May 1 00:37:10 2005 UTC (18 years, 10 months ago) by christos
Branch: MAIN
Changes since 1.105: +8 -2 lines
Diff to previous 1.105 (colored) to selected 1.204 (colored)

PR/9566: Arne H. Juul: Document special targets that do not obey dependencies.

Revision 1.105 / (download) - annotate - [select for diffs], Wed Feb 23 17:22:29 2005 UTC (19 years ago) by sjg
Branch: MAIN
CVS Tags: netbsd-3-base
Branch point for: netbsd-3
Changes since 1.104: +3 -2 lines
Diff to previous 1.104 (colored) to selected 1.204 (colored)

In the case of :? modifier, variable can be an expression - say so.

Revision 1.104 / (download) - annotate - [select for diffs], Tue Jul 13 11:58:55 2004 UTC (19 years, 8 months ago) by wiz
Branch: MAIN
Changes since 1.103: +3 -3 lines
Diff to previous 1.103 (colored) to selected 1.204 (colored)

Sort options in synopsis.

Revision 1.103 / (download) - annotate - [select for diffs], Fri May 7 08:23:31 2004 UTC (19 years, 10 months ago) by wiz
Branch: MAIN
Changes since 1.102: +6 -7 lines
Diff to previous 1.102 (colored) to selected 1.204 (colored)

Add comma in enumerations; fix a sentence; plural needs no apostrophe.

Revision 1.102 / (download) - annotate - [select for diffs], Fri May 7 08:12:16 2004 UTC (19 years, 10 months ago) by sjg
Branch: MAIN
Changes since 1.101: +15 -6 lines
Diff to previous 1.101 (colored) to selected 1.204 (colored)

Remove use of sh -e when running in compat mode.
Its not posix compliant and serves very little purpose.
With this change compat and jobs modes are consistent wrt how
they treat each line of a script.

Add support for the '+' command line prefix as required by posix.
Lines prefixed with '+' are executed even when -n is given.
[Actually posix says they should also be done for -q and -t]

PR:
Reviewed by: jmc

Revision 1.101 / (download) - annotate - [select for diffs], Thu Feb 5 23:51:46 2004 UTC (20 years, 1 month ago) by wiz
Branch: MAIN
CVS Tags: netbsd-2-0-base
Branch point for: netbsd-2-0
Changes since 1.100: +3 -3 lines
Diff to previous 1.100 (colored) to selected 1.204 (colored)

Bump date; uppercase POSIX.

Revision 1.100 / (download) - annotate - [select for diffs], Thu Feb 5 23:40:52 2004 UTC (20 years, 1 month ago) by ross
Branch: MAIN
Changes since 1.99: +3 -1 lines
Diff to previous 1.99 (colored) to selected 1.204 (colored)

Briefly document the posix command line order and add that this
is (unfortunately) not enforced.

Revision 1.99 / (download) - annotate - [select for diffs], Wed Feb 4 00:37:45 2004 UTC (20 years, 1 month ago) by wiz
Branch: MAIN
Changes since 1.98: +25 -18 lines
Diff to previous 1.98 (colored) to selected 1.204 (colored)

Use more mdoc macros; new sentence, new line; bump date for previous.

Revision 1.98 / (download) - annotate - [select for diffs], Tue Feb 3 19:25:29 2004 UTC (20 years, 1 month ago) by chuck
Branch: MAIN
Changes since 1.97: +27 -4 lines
Diff to previous 1.97 (colored) to selected 1.204 (colored)

add parent directory search for make as discussed on tech-toolchain.
 - new dir.c function: Dir_FindHereOrAbove:
      Search for a path in the current directory and then all the directories
      above it in turn until the path is found or we reach the root ("/").
 - add hooks to use it in main.c for -m and syspath (compiled in
      _PATH_DEFSYSPATH and $MAKESYSPATH).
 - updated man page

Revision 1.97 / (download) - annotate - [select for diffs], Tue Jan 27 01:38:01 2004 UTC (20 years, 1 month ago) by lukem
Branch: MAIN
Changes since 1.96: +28 -16 lines
Diff to previous 1.96 (colored) to selected 1.204 (colored)

Document more SPECIAL SOURCES (aka ATTRIBUTES).
Improve description of variable modifiers.
In the variable list, be more specific referring to "environment variables"
rather than just relying upon the formatting difference between .Ev and .Va.

Revision 1.96 / (download) - annotate - [select for diffs], Fri Dec 26 23:22:31 2003 UTC (20 years, 2 months ago) by wiz
Branch: MAIN
Changes since 1.95: +6 -5 lines
Diff to previous 1.95 (colored) to selected 1.204 (colored)

Bump date for previous; use macros for marking up
the dollar sign.

Revision 1.95 / (download) - annotate - [select for diffs], Fri Dec 26 23:18:18 2003 UTC (20 years, 2 months ago) by jmc
Branch: MAIN
Changes since 1.94: +9 -1 lines
Diff to previous 1.94 (colored) to selected 1.204 (colored)

Note that variable expansion can occur within SYSV style = substitions.

Revision 1.94 / (download) - annotate - [select for diffs], Sun Dec 7 20:48:25 2003 UTC (20 years, 3 months ago) by wiz
Branch: MAIN
Changes since 1.93: +3 -3 lines
Diff to previous 1.93 (colored) to selected 1.204 (colored)

Drop trailing spaces.

Revision 1.93 / (download) - annotate - [select for diffs], Sun Dec 7 20:46:44 2003 UTC (20 years, 3 months ago) by dsl
Branch: MAIN
Changes since 1.92: +3 -2 lines
Diff to previous 1.92 (colored) to selected 1.204 (colored)

Add back 'on error' that got deleted by mistake.

Revision 1.92 / (download) - annotate - [select for diffs], Sun Dec 7 20:30:28 2003 UTC (20 years, 3 months ago) by dsl
Branch: MAIN
Changes since 1.91: +3 -2 lines
Diff to previous 1.91 (colored) to selected 1.204 (colored)

Add a -Dg3 which outputs the 'input graph' only on error exit.
Lets you see the wood for the trees...

Revision 1.91 / (download) - annotate - [select for diffs], Fri Nov 7 01:01:46 2003 UTC (20 years, 4 months ago) by lukem
Branch: MAIN
Changes since 1.90: +62 -52 lines
Diff to previous 1.90 (colored) to selected 1.204 (colored)

Add some subsections in the VARIABLE ASSIGNMENTS section.

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.

Revision 1.90 / (download) - annotate - [select for diffs], Thu Oct 9 16:56:06 2003 UTC (20 years, 5 months ago) by jdolecek
Branch: MAIN
Changes since 1.89: +7 -7 lines
Diff to previous 1.89 (colored) to selected 1.204 (colored)

properly dottify .\" comments; this fixes output of [range] paragraph

Revision 1.89 / (download) - annotate - [select for diffs], Sat Sep 27 21:29:37 2003 UTC (20 years, 5 months ago) by sjg
Branch: MAIN
Changes since 1.88: +88 -6 lines
Diff to previous 1.88 (colored) to selected 1.204 (colored)

Implement :[] modifier to allow picking a range of words out of a variable.
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>

Revision 1.88 / (download) - annotate - [select for diffs], Wed Sep 10 18:04:23 2003 UTC (20 years, 6 months ago) by jmmv
Branch: MAIN
Changes since 1.87: +3 -1 lines
Diff to previous 1.87 (colored) to selected 1.204 (colored)

Add the 'e' debug flag (i.e., '-d e'):  when enabled, show the "target
failed" and "command failed" messages added recently.  These introduce
too much noise when debugging some kind of problems, specially in pkgsrc.

Revision 1.87 / (download) - annotate - [select for diffs], Wed Sep 10 08:44:31 2003 UTC (20 years, 6 months ago) by jmmv
Branch: MAIN
Changes since 1.86: +4 -2 lines
Diff to previous 1.86 (colored) to selected 1.204 (colored)

Document the '-d f' flag.

Revision 1.86 / (download) - annotate - [select for diffs], Fri Sep 5 06:55:46 2003 UTC (20 years, 6 months ago) by wiz
Branch: MAIN
Changes since 1.85: +7 -6 lines
Diff to previous 1.85 (colored) to selected 1.204 (colored)

Whitespace nits.

Revision 1.85 / (download) - annotate - [select for diffs], Fri Sep 5 06:52:12 2003 UTC (20 years, 6 months ago) by sjg
Branch: MAIN
Changes since 1.84: +7 -2 lines
Diff to previous 1.84 (colored) to selected 1.204 (colored)

Allow -V '${FOO}' to print the expanded version of FOO.
A side effect of adding and removing a -E option for the above is that
the cases in MainParseArgs are now ordered correctly?

Revision 1.84 / (download) - annotate - [select for diffs], Thu Aug 7 11:14:54 2003 UTC (20 years, 7 months ago) by agc
Branch: MAIN
Changes since 1.83: +2 -6 lines
Diff to previous 1.83 (colored) to selected 1.204 (colored)

Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22365, verified by myself.

Revision 1.83 / (download) - annotate - [select for diffs], Fri Aug 1 00:39:54 2003 UTC (20 years, 7 months ago) by sjg
Branch: MAIN
Changes since 1.82: +46 -2 lines
Diff to previous 1.82 (colored) to selected 1.204 (colored)

Allow .SHELL: to control the shell used by compat mode too.
Add a shell spec for ksh - a nice portable posix shell.
Document .SHELL:

Revision 1.82 / (download) - annotate - [select for diffs], Wed Jul 16 11:34:16 2003 UTC (20 years, 8 months ago) by wiz
Branch: MAIN
Changes since 1.81: +5 -5 lines
Diff to previous 1.81 (colored) to selected 1.204 (colored)

Bump date for tu addition; drop trailing space; sort a bit.

Revision 1.81 / (download) - annotate - [select for diffs], Mon Jul 14 20:39:20 2003 UTC (20 years, 8 months ago) by sjg
Branch: MAIN
Changes since 1.80: +8 -1 lines
Diff to previous 1.80 (colored) to selected 1.204 (colored)

Add a :ts[c] modifier to allow controlling the separator used between
words in a variable expansion.  If 'c' is omitted no separator is used.

Revision 1.80 / (download) - annotate - [select for diffs], Thu Jun 26 18:21:45 2003 UTC (20 years, 8 months ago) by wiz
Branch: MAIN
Changes since 1.79: +12 -14 lines
Diff to previous 1.79 (colored) to selected 1.204 (colored)

Misc mdoc fixes (mostly quoting).

Revision 1.79 / (download) - annotate - [select for diffs], Fri May 23 18:15:17 2003 UTC (20 years, 10 months ago) by wiz
Branch: MAIN
Changes since 1.78: +4 -3 lines
Diff to previous 1.78 (colored) to selected 1.204 (colored)

New sentence, new line; bump date for last.

Revision 1.78 / (download) - annotate - [select for diffs], Fri May 23 17:25:10 2003 UTC (20 years, 10 months ago) by christos
Branch: MAIN
Changes since 1.77: +12 -3 lines
Diff to previous 1.77 (colored) to selected 1.204 (colored)

PR/10917: John Hawkinson: Document $MAKE and say which one we want to be using.

Revision 1.77 / (download) - annotate - [select for diffs], Wed Apr 16 09:44:07 2003 UTC (20 years, 11 months ago) by wiz
Branch: MAIN
Changes since 1.76: +2 -2 lines
Diff to previous 1.76 (colored) to selected 1.204 (colored)

Bump date for last.

Revision 1.76 / (download) - annotate - [select for diffs], Tue Apr 1 14:00:58 2003 UTC (20 years, 11 months ago) by jrf
Branch: MAIN
Changes since 1.75: +2 -1 lines
Diff to previous 1.75 (colored) to selected 1.204 (colored)

Added MAKESYSPATH environment variable as per jmmv's suggestion in
PR 18030

Revision 1.75 / (download) - annotate - [select for diffs], Fri Mar 14 05:19:43 2003 UTC (21 years ago) by thorpej
Branch: MAIN
Changes since 1.74: +16 -2 lines
Diff to previous 1.74 (colored) to selected 1.204 (colored)

Add a -X option, which prevents make(1) from putting variables
set on the command line into the environment individually.  This
can be useful on systems which have a tight limit on the size
of the argument space.

Revision 1.74 / (download) - annotate - [select for diffs], Tue Feb 25 10:35:47 2003 UTC (21 years ago) by wiz
Branch: MAIN
Changes since 1.73: +12 -12 lines
Diff to previous 1.73 (colored) to selected 1.204 (colored)

.Nm does not need a dummy argument ("") before punctuation or
for correct formatting of the SYNOPSIS any longer.

Revision 1.73 / (download) - annotate - [select for diffs], Tue Feb 4 23:07:34 2003 UTC (21 years, 1 month ago) by perry
Branch: MAIN
Changes since 1.72: +2 -2 lines
Diff to previous 1.72 (colored) to selected 1.204 (colored)

"Utilize" has exactly the same meaning as "use," but it is more
difficult to read and understand. Most manuals of English style
therefore say that you should use "use".

Revision 1.72 / (download) - annotate - [select for diffs], Thu Jan 9 01:22:30 2003 UTC (21 years, 2 months ago) by uebayasi
Branch: MAIN
Changes since 1.71: +15 -7 lines
Diff to previous 1.71 (colored) to selected 1.204 (colored)

Be more specific how to call arguments of modifiers.

Reviewed By: wiz

Revision 1.71 / (download) - annotate - [select for diffs], Fri Jan 3 14:11:18 2003 UTC (21 years, 2 months ago) by mjl
Branch: MAIN
Changes since 1.70: +5 -5 lines
Diff to previous 1.70 (colored) to selected 1.204 (colored)

Tyop fixes

Revision 1.70 / (download) - annotate - [select for diffs], Fri Nov 29 19:10:25 2002 UTC (21 years, 3 months ago) by wiz
Branch: MAIN
CVS Tags: fvdl_fs64_base
Changes since 1.69: +9 -7 lines
Diff to previous 1.69 (colored) to selected 1.204 (colored)

Bump date for .PATH description; begin sentence with upper case letter;
new sentence, new line.

Revision 1.69 / (download) - annotate - [select for diffs], Tue Nov 26 06:13:01 2002 UTC (21 years, 3 months ago) by sjg
Branch: MAIN
Changes since 1.68: +8 -1 lines
Diff to previous 1.68 (colored) to selected 1.204 (colored)

Whenever we update .PATH, set the variable ${.PATH} to reflect the
search list that will be used.  Thus 'dot' and 'cur' will appear in
${.PATH} either at the start or end depending on .DOTLAST even though
they are not strictly in dirSearchPath.

When .CURDIR is assigned to - re-set the 'cur' Path.

Finally, when checking subdirs, look in 'dot' and 'cur' (first or last
depending on .DOTLAST) just as we do in other situations.

Revision 1.68 / (download) - annotate - [select for diffs], Sat Nov 2 04:13:41 2002 UTC (21 years, 4 months ago) by perry
Branch: MAIN
Changes since 1.67: +2 -2 lines
Diff to previous 1.67 (colored) to selected 1.204 (colored)

environment variables, not environmental variables

Revision 1.67 / (download) - annotate - [select for diffs], Mon Sep 30 11:09:05 2002 UTC (21 years, 5 months ago) by grant
Branch: MAIN
Changes since 1.66: +53 -29 lines
Diff to previous 1.66 (colored) to selected 1.204 (colored)

New sentence, new line.

Revision 1.66 / (download) - annotate - [select for diffs], Tue Sep 24 15:31:30 2002 UTC (21 years, 5 months ago) by wiz
Branch: MAIN
Changes since 1.65: +4 -5 lines
Diff to previous 1.65 (colored) to selected 1.204 (colored)

Fix an Xr, add a comma and join two short lines. In short, minor changes :)

Revision 1.65 / (download) - annotate - [select for diffs], Tue Sep 24 15:19:26 2002 UTC (21 years, 5 months ago) by christos
Branch: MAIN
Changes since 1.64: +3 -2 lines
Diff to previous 1.64 (colored) to selected 1.204 (colored)

add missing Lt.

Revision 1.64 / (download) - annotate - [select for diffs], Mon Aug 19 11:14:23 2002 UTC (21 years, 7 months ago) by wiz
Branch: MAIN
Changes since 1.63: +5 -5 lines
Diff to previous 1.63 (colored) to selected 1.204 (colored)

End some sentences with a dot. bin/17987 by Julio Merino.

Revision 1.63 / (download) - annotate - [select for diffs], Tue Mar 19 22:17:30 2002 UTC (22 years ago) by lukem
Branch: MAIN
CVS Tags: netbsd-1-6-base, netbsd-1-6-RELEASE, netbsd-1-6-RC3, netbsd-1-6-RC2, netbsd-1-6-RC1, netbsd-1-6-PATCH002-RELEASE, netbsd-1-6-PATCH002-RC4, netbsd-1-6-PATCH002-RC3, netbsd-1-6-PATCH002-RC2, netbsd-1-6-PATCH002-RC1, netbsd-1-6-PATCH002, netbsd-1-6-PATCH001-RELEASE, netbsd-1-6-PATCH001-RC3, netbsd-1-6-PATCH001-RC2, netbsd-1-6-PATCH001-RC1, netbsd-1-6-PATCH001, netbsd-1-6
Changes since 1.62: +7 -3 lines
Diff to previous 1.62 (colored) to selected 1.204 (colored)

clarify how :U works

Revision 1.62 / (download) - annotate - [select for diffs], Fri Feb 8 01:36:28 2002 UTC (22 years, 1 month ago) by ross
Branch: MAIN
Changes since 1.61: +11 -11 lines
Diff to previous 1.61 (colored) to selected 1.204 (colored)

Generate <>& symbolically. I'm avoiding .../dist/... directories for now.

Revision 1.61 / (download) - annotate - [select for diffs], Thu Feb 7 03:15:11 2002 UTC (22 years, 1 month ago) by ross
Branch: MAIN
Changes since 1.60: +5 -5 lines
Diff to previous 1.60 (colored) to selected 1.204 (colored)

Edit -mdoc usage.

* There is no -indent option to .Bd or .Bl, although you would
  never know that from its frequent use in this tree. There is a
  "-offset indent" combination that makes sense, and you can certainly
  say "-width indent".

* Also, you can't markup the -width option argument, tho you CAN
  use a callable macro. So "-width Ar filename" doesn't make sense,
  but either "-width Ar" or "-width filename" does, as might something
  like "-width xxfilename" for a little extra space.

* There are a lot of needlessly complex hanging tag macros in man4 used
  to create simple item lists. Those should be simplified one of these
  days before someone copies and edits yet another man4 page.

Revision 1.60 / (download) - annotate - [select for diffs], Wed Feb 6 16:26:12 2002 UTC (22 years, 1 month ago) by pk
Branch: MAIN
Changes since 1.59: +5 -1 lines
Diff to previous 1.59 (colored) to selected 1.204 (colored)

Add `tu' and `tl' variable expansion modifiers, which transform the
value to uppercase and lowercase, respectively. From Kevin Neal from FreeBSD.

Revision 1.59 / (download) - annotate - [select for diffs], Fri Feb 1 19:35:29 2002 UTC (22 years, 1 month ago) by bgrayson
Branch: MAIN
Changes since 1.58: +5 -5 lines
Diff to previous 1.58 (colored) to selected 1.204 (colored)

- Several paragraphs were indented one level further than needed.
- The endfor example needed some spacing readjustments.

Revision 1.58 / (download) - annotate - [select for diffs], Sun Dec 23 10:51:56 2001 UTC (22 years, 3 months ago) by lukem
Branch: MAIN
Changes since 1.57: +3 -3 lines
Diff to previous 1.57 (colored) to selected 1.204 (colored)

outdent description of variable expansion modifiers

Revision 1.57 / (download) - annotate - [select for diffs], Mon Nov 12 03:23:58 2001 UTC (22 years, 4 months ago) by wiz
Branch: MAIN
Changes since 1.56: +17 -17 lines
Diff to previous 1.56 (colored) to selected 1.204 (colored)

Whitespace/punctuation nits.

Revision 1.56 / (download) - annotate - [select for diffs], Mon Nov 12 01:33:49 2001 UTC (22 years, 4 months ago) by tv
Branch: MAIN
Changes since 1.55: +4 -1 lines
Diff to previous 1.55 (colored) to selected 1.204 (colored)

Add new make variable .ALLTARGETS, which lists all targets in the Makefile.
(Makes it possible to search the target list for particular things and
apply attributes to all the relevant targets.)

Revision 1.55 / (download) - annotate - [select for diffs], Mon Nov 12 01:31:21 2001 UTC (22 years, 4 months ago) by tv
Branch: MAIN
Changes since 1.54: +33 -33 lines
Diff to previous 1.54 (colored) to selected 1.204 (colored)

Sort list of make variables.

Revision 1.54 / (download) - annotate - [select for diffs], Tue Oct 23 06:32:38 2001 UTC (22 years, 5 months ago) by jmc
Branch: MAIN
Changes since 1.53: +2 -2 lines
Diff to previous 1.53 (colored) to selected 1.204 (colored)

Fix typo in definition of PARSEFILE. It should refer to PARSEDIR (and not
itself twice) when describing the variables lifetime

Revision 1.53 / (download) - annotate - [select for diffs], Mon Aug 13 12:33:48 2001 UTC (22 years, 7 months ago) by ad
Branch: MAIN
Changes since 1.52: +2 -2 lines
Diff to previous 1.52 (colored) to selected 1.204 (colored)

Nit.

Revision 1.52 / (download) - annotate - [select for diffs], Tue Jul 3 18:08:51 2001 UTC (22 years, 8 months ago) by christos
Branch: MAIN
Changes since 1.51: +7 -1 lines
Diff to previous 1.51 (colored) to selected 1.204 (colored)

add .USEBEFORE Attribute

Revision 1.51 / (download) - annotate - [select for diffs], Sun Jun 10 02:31:00 2001 UTC (22 years, 9 months ago) by sjg
Branch: MAIN
Changes since 1.50: +10 -4 lines
Diff to previous 1.50 (colored) to selected 1.204 (colored)

Simplify the exporting of VAR_CMD's via MAKEFLAGS.
We now just list the names of such variables in .MAKEOVERRIDES.
When we come to export MAKEFLAGS we quote the value of each exported variable
using :Q, using: ${.MAKEOVERRIDES:O:u:@v@$v=${$v:Q}@}
The :O:u suppresses duplicate names.
Also modifed Parse_DoVar to re-export MAKEFLAGS whenever .MAKEOVERRIDES
is assigned to so .MAKEOVERRIDES+= PATH will export PATH=${PATH:Q}
to the environment, while .MAKEOVERRIDES= will disable export of VAR_CMD's.

Revision 1.50 / (download) - annotate - [select for diffs], Sat Jun 9 07:00:37 2001 UTC (22 years, 9 months ago) by sjg
Branch: MAIN
Changes since 1.49: +9 -2 lines
Diff to previous 1.49 (colored) to selected 1.204 (colored)

Mention .MAKEOVERRIDES

Revision 1.49 / (download) - annotate - [select for diffs], Fri Jun 1 20:33:37 2001 UTC (22 years, 9 months ago) by sjg
Branch: MAIN
Changes since 1.48: +18 -1 lines
Diff to previous 1.48 (colored) to selected 1.204 (colored)

A number of semi-related changes.
1. make -dx turns on DEBUG_SHELL which causes sh -x to be used where
   possible.
2. PrintOnError() is now called when make is stopping due to an error.
   This routine reports the curdir and the value of any variables listed
   in MAKE_PRINT_VAR_ON_ERROR.
3. Variables set via command line, are propagated to child-makes via
   MAKEFLAGS.  This behaviour appears to be necessary for POSIX (according
   to the GNU folk anyway).
4. Do not reset MAKEFILE when reading ".depend" as this rather eliminates the
   usefulness of ${MAKEFILE}.
5. Added ${.newline} as a simple means of being able to include \n in the
   result of a :@ loop expansion.
6. Set ${MAKE_VERSION} if defined.  Need to come up with a useful value.

Reviewed: christos

Revision 1.48 / (download) - annotate - [select for diffs], Wed Apr 4 09:39:07 2001 UTC (22 years, 11 months ago) by wiz
Branch: MAIN
Changes since 1.47: +22 -22 lines
Diff to previous 1.47 (colored) to selected 1.204 (colored)

getcwd lives in 3, not 2. Whitespace fixes.

Revision 1.47 / (download) - annotate - [select for diffs], Sun Jan 14 20:44:27 2001 UTC (23 years, 2 months ago) by christos
Branch: MAIN
Changes since 1.46: +4 -1 lines
Diff to previous 1.46 (colored) to selected 1.204 (colored)

Provide a new .if commands(<target>) primitive that returns true if the
target has commands associated with it.

Revision 1.46 / (download) - annotate - [select for diffs], Wed Jan 10 15:54:00 2001 UTC (23 years, 2 months ago) by christos
Branch: MAIN
Changes since 1.45: +4 -2 lines
Diff to previous 1.45 (colored) to selected 1.204 (colored)

PR/11800: Chris Demetriou: Add -W flag to exit on parse warnings.
While I am here, s/make:.*"/%s:\1", progname/

Revision 1.45 / (download) - annotate - [select for diffs], Mon Jan 1 15:47:38 2001 UTC (23 years, 2 months ago) by sommerfeld
Branch: MAIN
Changes since 1.44: +9 -4 lines
Diff to previous 1.44 (colored) to selected 1.204 (colored)

Delete forceSerial; just use compatMake for that.
Add -N flag to *really* not execute any commands (useful when using
the -d flags to debug usr/src/Makefile)
Document -N
Update documentation of -n to mention that it still executes commands
for targets marked .MAKE so that the -N/-n distinction is clear.

Revision 1.44 / (download) - annotate - [select for diffs], Sat Dec 30 02:05:21 2000 UTC (23 years, 2 months ago) by sommerfeld
Branch: MAIN
Changes since 1.43: +24 -1 lines
Diff to previous 1.43 (colored) to selected 1.204 (colored)

Add a token-passing scheme to allow a recursive make to successfully
use -j; all make's in a recursive build cooperate to limit the total
number of jobs, using a token-passing scheme.

The current token passing algorithm is similar to the one implemented
by gmake; there is a single pipe which is inherited through the entire
process hierarchy; tokens are obtained by reading a byte from the
"read end" of the pipe, and are returned by writing them to the "write
end".  This exact algorithm is likely to change in the future.

Implementation details:
 - Use the new trace facility to allow measurement of the
effectiveness of different token-passing schemes
 - Get a token in MakeStartJobs(), return it in Make_Update()
 - Eliminate Job_Full() and the jobFull global since they are
redundant with token system.
 - Add an "internal" -J option (to pass the token pipe fd's down to
submakes) and a -T option for tracing.
 - Change how compatMake is forced so that -j means something when
inherited by submakes.
 - When waiting for a token, poll the token-passing pipe as well as
the output pipes of existing jobs.

Revision 1.43 / (download) - annotate - [select for diffs], Tue Sep 5 17:57:52 2000 UTC (23 years, 6 months ago) by christos
Branch: MAIN
Changes since 1.42: +4 -1 lines
Diff to previous 1.42 (colored) to selected 1.204 (colored)

:u modifier a'la uniq(1) [from der Mouse]

Revision 1.42 / (download) - annotate - [select for diffs], Thu Jun 1 02:29:21 2000 UTC (23 years, 9 months ago) by sjg
Branch: MAIN
CVS Tags: netbsd-1-5-base, netbsd-1-5-RELEASE, netbsd-1-5-BETA2, netbsd-1-5-BETA, netbsd-1-5-ALPHA2
Branch point for: netbsd-1-5
Changes since 1.41: +16 -14 lines
Diff to previous 1.41 (colored) to selected 1.204 (colored)

Rats!  ${FOO:=bar} is a common usage of the SysV = modifier.
To avoid that, we now do ::[+?!]*= but the SysV = modifier can
conflict with any new modifier.  At there are currently no Makefiles
in our tree that use ${FOO::=bar}

Revision 1.41 / (download) - annotate - [select for diffs], Tue May 30 02:32:21 2000 UTC (23 years, 9 months ago) by sjg
Branch: MAIN
Changes since 1.40: +41 -1 lines
Diff to previous 1.40 (colored) to selected 1.204 (colored)

Implemented a set of assignment modifiers.  These solve obscure
problems such as using modifiers on .for loop iterators derived from
local variables (eg .TARGET).
Unless the variable already exists in a global context, these assignments are
local to the current context (this is usually what is wanted).

Revision 1.40 / (download) - annotate - [select for diffs], Sat Apr 29 12:18:52 2000 UTC (23 years, 10 months ago) by sjg
Branch: MAIN
CVS Tags: minoura-xpg4dl-base
Branch point for: minoura-xpg4dl
Changes since 1.39: +43 -3 lines
Diff to previous 1.39 (colored) to selected 1.204 (colored)

Added the :U :D :L :P :! and :@ modifiers as used by ODE make.
These allow some very useful magic in the makefiles.
The comment in var.c describing their behaviour is mostly lifted
from ODE make, but the implementation of the modifiers themselves
is quite different (much simpler) due to divergence of our code base.

Revision 1.39 / (download) - annotate - [select for diffs], Sun Apr 16 22:08:06 2000 UTC (23 years, 11 months ago) by christos
Branch: MAIN
Changes since 1.38: +12 -6 lines
Diff to previous 1.38 (colored) to selected 1.204 (colored)

PR/9899: David A. Holland: multi-variable .for constructs in make

Revision 1.38 / (download) - annotate - [select for diffs], Tue Feb 8 12:56:28 2000 UTC (24 years, 1 month ago) by sjg
Branch: MAIN
Changes since 1.37: +20 -2 lines
Diff to previous 1.37 (colored) to selected 1.204 (colored)

Mention MAKEOBJDIRPREFIX and explain how it or MAKEOBJDIR are used.
Also fixed a typo in the .SUFFIXES bit.

Revision 1.37 / (download) - annotate - [select for diffs], Fri Oct 8 20:13:42 1999 UTC (24 years, 5 months ago) by msaitoh
Branch: MAIN
CVS Tags: wrstuden-devbsize-base, wrstuden-devbsize-19991221, comdex-fall-1999-base, comdex-fall-1999
Changes since 1.36: +2 -2 lines
Diff to previous 1.36 (colored) to selected 1.204 (colored)

s/ the the / the /

Revision 1.36 / (download) - annotate - [select for diffs], Sun Sep 12 00:17:50 1999 UTC (24 years, 6 months ago) by christos
Branch: MAIN
Branch point for: wrstuden-devbsize
Changes since 1.35: +3 -1 lines
Diff to previous 1.35 (colored) to selected 1.204 (colored)

Add :O var modifier, that sorts the words in a variable.

Revision 1.35 / (download) - annotate - [select for diffs], Mon Aug 9 21:06:28 1999 UTC (24 years, 7 months ago) by aidan
Branch: MAIN
Changes since 1.34: +14 -2 lines
Diff to previous 1.34 (colored) to selected 1.204 (colored)

Added .PARSEDIR and .PARSEFILE variables to make(1).

Revision 1.34 / (download) - annotate - [select for diffs], Mon Jul 12 18:22:49 1999 UTC (24 years, 8 months ago) by thorpej
Branch: MAIN
Changes since 1.33: +4 -2 lines
Diff to previous 1.33 (colored) to selected 1.204 (colored)

Fix a typo.

Revision 1.33 / (download) - annotate - [select for diffs], Sun Jul 11 02:06:57 1999 UTC (24 years, 8 months ago) by thorpej
Branch: MAIN
Changes since 1.32: +3 -1 lines
Diff to previous 1.32 (colored) to selected 1.204 (colored)

Add a mechanism for specifying that ${.CURDIR} will be searched last
in the presence of .PATH directives by specifying:

.PATH: .DOTLAST

This will be used to fixup the build system to work with both crypto-us
and crypto-intl sub-trees.

Make(1) changes by Christos Zoulas, after much badgering by me :-)

Revision 1.32 / (download) - annotate - [select for diffs], Wed Mar 10 05:22:18 1999 UTC (25 years ago) by erh
Branch: MAIN
CVS Tags: netbsd-1-4-base, netbsd-1-4-RELEASE, netbsd-1-4-PATCH003, netbsd-1-4-PATCH002, netbsd-1-4-PATCH001, netbsd-1-4
Changes since 1.31: +2 -1 lines
Diff to previous 1.31 (colored) to selected 1.204 (colored)

Add missing .El line.

Revision 1.31 / (download) - annotate - [select for diffs], Tue Mar 9 03:21:21 1999 UTC (25 years ago) by ross
Branch: MAIN
Changes since 1.30: +2 -1 lines
Diff to previous 1.30 (colored) to selected 1.204 (colored)

Missing .El.

Revision 1.30 / (download) - annotate - [select for diffs], Sun Mar 7 11:30:01 1999 UTC (25 years ago) by mycroft
Branch: MAIN
Changes since 1.29: +16 -2 lines
Diff to previous 1.29 (colored) to selected 1.204 (colored)

Clean up SYNOPSIS formatting.

Revision 1.29 / (download) - annotate - [select for diffs], Tue Nov 17 23:56:23 1998 UTC (25 years, 4 months ago) by ross
Branch: MAIN
Changes since 1.28: +7 -7 lines
Diff to previous 1.28 (colored) to selected 1.204 (colored)

Fix a bug that apparently prevented, since day 1, the .-include / .sinclude
feature from ever working. Also, fix the man page that incorrectly described
the syntax of the feature that didn't work.

Revision 1.28 / (download) - annotate - [select for diffs], Thu Aug 6 13:42:22 1998 UTC (25 years, 7 months ago) by christos
Branch: MAIN
Changes since 1.27: +9 -1 lines
Diff to previous 1.27 (colored) to selected 1.204 (colored)

- Add {.,}[s-]include for silent include file failures
- Make traditional include statement include more than one file if present
  on the line.

Keeping up with the other's :-)

Revision 1.27 / (download) - annotate - [select for diffs], Wed Apr 1 14:18:10 1998 UTC (25 years, 11 months ago) by christos
Branch: MAIN
Changes since 1.26: +6 -1 lines
Diff to previous 1.26 (colored) to selected 1.204 (colored)

Add conditional variable evaluation from Alistair Crooks.

Revision 1.26 / (download) - annotate - [select for diffs], Tue Feb 24 18:34:31 1998 UTC (26 years ago) by hubertf
Branch: MAIN
Changes since 1.25: +3 -2 lines
Diff to previous 1.25 (colored) to selected 1.204 (colored)

Fix typos from PR 5055 by NAKAJIMA Yoshihiro <nakayosh@kcn.or.jp>.

Revision 1.25 / (download) - annotate - [select for diffs], Sun Oct 19 05:05:24 1997 UTC (26 years, 5 months ago) by lukem
Branch: MAIN
CVS Tags: netbsd-1-3-base, netbsd-1-3-RELEASE, netbsd-1-3-PATCH001, netbsd-1-3-BETA
Branch point for: netbsd-1-3
Changes since 1.24: +37 -37 lines
Diff to previous 1.24 (colored) to selected 1.204 (colored)

fix up .Nm usage

Revision 1.24 / (download) - annotate - [select for diffs], Sun Oct 12 05:51:47 1997 UTC (26 years, 5 months ago) by mikel
Branch: MAIN
Changes since 1.23: +3 -3 lines
Diff to previous 1.23 (colored) to selected 1.204 (colored)

add missing .Nm argument

Revision 1.23 / (download) - annotate - [select for diffs], Mon May 26 23:07:31 1997 UTC (26 years, 9 months ago) by pk
Branch: MAIN
Changes since 1.22: +2 -2 lines
Diff to previous 1.22 (colored) to selected 1.204 (colored)

Erase spurious character.

Revision 1.22 / (download) - annotate - [select for diffs], Mon May 26 21:04:28 1997 UTC (26 years, 9 months ago) by pk
Branch: MAIN
Changes since 1.21: +2 -2 lines
Diff to previous 1.21 (colored) to selected 1.204 (colored)

Minor formatting glitch.

Revision 1.21 / (download) - annotate - [select for diffs], Thu May 8 22:34:34 1997 UTC (26 years, 10 months ago) by mycroft
Branch: MAIN
Changes since 1.20: +4 -3 lines
Diff to previous 1.20 (colored) to selected 1.204 (colored)

Fix description of .NOPATH.

Revision 1.20 / (download) - annotate - [select for diffs], Thu May 8 21:24:45 1997 UTC (26 years, 10 months ago) by gwr
Branch: MAIN
Changes since 1.19: +6 -1 lines
Diff to previous 1.19 (colored) to selected 1.204 (colored)

Add the new .NOPATH feature which can be used to disable .PATH search
for particular targets, i.e. .depend, objects, etc.  (from Christos).

Revision 1.19 / (download) - annotate - [select for diffs], Tue May 6 22:29:43 1997 UTC (26 years, 10 months ago) by mycroft
Branch: MAIN
Changes since 1.18: +6 -3 lines
Diff to previous 1.18 (colored) to selected 1.204 (colored)

Document .PHONY better.

Revision 1.18 / (download) - annotate - [select for diffs], Mon Mar 10 21:19:53 1997 UTC (27 years ago) by christos
Branch: MAIN
Changes since 1.17: +3 -1 lines
Diff to previous 1.17 (colored) to selected 1.204 (colored)

Add a .MADE directive to indicated that the children of a target are
up-to-date, even when they are not. This is to simulate our current
make install behavior with proper dependencies.

Revision 1.17 / (download) - annotate - [select for diffs], Tue Dec 24 17:36:27 1996 UTC (27 years, 3 months ago) by christos
Branch: MAIN
Changes since 1.16: +53 -13 lines
Diff to previous 1.16 (colored) to selected 1.204 (colored)

[initial version of the substitution/regexp changes were courtesy of Der Mouse]

- fix the variable substitution code in make [PR/2748]
      1. change s/a/b/ so that it substitutes the first occurance of the
	 pattern on each word, not only the first word.
      2. add flag '1' to the variable substitution so that the substitutions
	 get performed only once.

  ***THIS IS AN INCOMPATIBLE CHANGE!***

  Unfortunately there was no way to make things consistent without
  modifying the current behavior. Fortunately none of our Makefiles
  depended on this.

	    OLD:

		VAR      = aa1 aa2 aa3 aa4

		S/a/b/   = ba1 aa2 aa3 aa4
		S/a/b/g  = bb1 bb2 bb3 bb4

	    NEW:

		VAR      = aa1 aa2 aa3 aa4

		S/a/b/   = ba1 ba2 ba3 ba4
		S/a/b/1  = ba1 aa2 aa3 aa4
		S/a/b/g  = bb1 bb2 bb3 bb4
		S/a/b/1g = bb1 aa2 aa3 aa4

- add regexp variable substitution via 'C/foo/bar/' [PR/2752]

- add variable quoting via the ${VAR:Q} modifier. This is useful when running
  recursive invocations of make(1):

	make VAR=${VAR:Q}

  will always work... (This may prove useful in the kernel builds...) [PR/2981]

Revision 1.16 / (download) - annotate - [select for diffs], Wed Nov 6 17:59:13 1996 UTC (27 years, 4 months ago) by christos
Branch: MAIN
Changes since 1.15: +59 -24 lines
Diff to previous 1.15 (colored) to selected 1.204 (colored)

- Merge in FreeBSD and Lite2 changes.
- Fix bug where a non-archive target with a .a suffix would always
  be considered to be out of date, since it does not have a TOC.

Revision 1.15 / (download) - annotate - [select for diffs], Fri Aug 30 17:59:40 1996 UTC (27 years, 6 months ago) by thorpej
Branch: MAIN
Changes since 1.14: +2 -1 lines
Diff to previous 1.14 (colored) to selected 1.204 (colored)

Tidy up some RCS ids a bit.

Revision 1.14 / (download) - annotate - [select for diffs], Fri Mar 15 21:52:32 1996 UTC (28 years ago) by christos
Branch: MAIN
CVS Tags: netbsd-1-2-base, netbsd-1-2-RELEASE, netbsd-1-2-BETA
Branch point for: netbsd-1-2
Changes since 1.13: +6 -1 lines
Diff to previous 1.13 (colored) to selected 1.204 (colored)

Add PHONY attribute and target. This is the first step to cleanup the
xinstall and xlint crud.

Revision 1.13 / (download) - annotate - [select for diffs], Wed Mar 6 00:15:20 1996 UTC (28 years ago) by christos
Branch: MAIN
Changes since 1.12: +13 -3 lines
Diff to previous 1.12 (colored) to selected 1.204 (colored)

Fix PR/2118; apply sysincludes patch.

Revision 1.12 / (download) - annotate - [select for diffs], Sat Dec 16 05:03:09 1995 UTC (28 years, 3 months ago) by christos
Branch: MAIN
Changes since 1.11: +21 -1 lines
Diff to previous 1.11 (colored) to selected 1.204 (colored)

- Added .WAIT to synchronize between sources like other pmake variants.
- Updated documentation to include .ORDER .PARALLEL .NO_PARALLEL .NONPARALLEL

Revision 1.11 / (download) - annotate - [select for diffs], Wed Nov 8 02:31:00 1995 UTC (28 years, 4 months ago) by christos
Branch: MAIN
Changes since 1.10: +4 -2 lines
Diff to previous 1.10 (colored) to selected 1.204 (colored)

- Turn compat mode on by default. It gets turned off when the -j without
  the -B flag is specified. [Thus you can use -j 1 to turn it off].
- Fix malloc -> emalloc as Gordon noted.

Revision 1.10 / (download) - annotate - [select for diffs], Thu Nov 2 23:54:57 1995 UTC (28 years, 4 months ago) by christos
Branch: MAIN
Changes since 1.9: +5 -2 lines
Diff to previous 1.9 (colored) to selected 1.204 (colored)

Minor:
    - ${.PREFIX} should never contain a full pathname
    - Fixed gcc -Wall warnings
Major:
    - compatMake is now FALSE. This means that we are now running in
      full pmake mode:
	  * rules on dependency lines can be executed in parallel and or
	    out of sequence:

	    foo: bar baz

	    can fire the rule for baz before the rule for bar is fired.
	    To enforce bar to be fired before baz, another rule needs to be
	    added. [bar: baz]
	  * adjacent shell commands in a target are now executed by a single
	    invocation of the shell, not one invocation of the shell per line
      (compatMake can be turned off using the -B flag)
    - The -j flag now works... I.e. make -j 4 will fork up to four jobs in
      parallel when it can. The target name is printed before each burst
      of output caused by the target execution as '--- target ---', when j > 1
    - I have changed all the Makefiles so that they work with make -j N, and
      I have tested the whole netbsd by:
	  'make -j 4 cleandir; make -j 4 depend; make -j 4; make -j 4 install'
    - I have not compiled or tested this version of make with -DREMOTE.

Revision 1.9 / (download) - annotate - [select for diffs], Wed Jun 14 15:19:37 1995 UTC (28 years, 9 months ago) by christos
Branch: MAIN
CVS Tags: netbsd-1-1-base, netbsd-1-1-RELEASE
Branch point for: netbsd-1-1
Changes since 1.8: +1 -1 lines
Diff to previous 1.8 (colored) to selected 1.204 (colored)

- $NetBSD$ rcsids
- Fixed so that .[A-Z]* targets that do not match keywords are ignored as
  Posix mandates
- Added .PHONY target keyword

Revision 1.8 / (download) - annotate - [select for diffs], Sat Apr 29 17:05:08 1995 UTC (28 years, 10 months ago) by christos
Branch: MAIN
Changes since 1.7: +3 -2 lines
Diff to previous 1.7 (colored) to selected 1.204 (colored)

Fix small typo; from Chris Torek

Revision 1.7 / (download) - annotate - [select for diffs], Mon Jan 23 20:34:59 1995 UTC (29 years, 2 months ago) by mycroft
Branch: MAIN
Changes since 1.6: +6 -6 lines
Diff to previous 1.6 (colored) to selected 1.204 (colored)

Fix 4 typos pointed out by Jordan, and 1 by me.

Revision 1.6 / (download) - annotate - [select for diffs], Sat Mar 5 00:34:56 1994 UTC (30 years ago) by cgd
Branch: MAIN
CVS Tags: netbsd-1-0-base, netbsd-1-0-RELEASE, netbsd-1-0-PATCH1, netbsd-1-0-PATCH06, netbsd-1-0-PATCH05, netbsd-1-0-PATCH04, netbsd-1-0-PATCH03, netbsd-1-0-PATCH02, netbsd-1-0-PATCH0, netbsd-1-0
Changes since 1.5: +56 -23 lines
Diff to previous 1.5 (colored) to selected 1.204 (colored)

fixes/improvements from Christos Zoulas <christos@deshaw.com>.

Revision 1.5 / (download) - annotate - [select for diffs], Thu Feb 10 18:25:01 1994 UTC (30 years, 1 month ago) by jtc
Branch: MAIN
Changes since 1.4: +4 -4 lines
Diff to previous 1.4 (colored) to selected 1.204 (colored)

Fix typos & spelling errors

Revision 1.4 / (download) - annotate - [select for diffs], Wed Dec 22 00:25:59 1993 UTC (30 years, 3 months ago) by pk
Branch: MAIN
Changes since 1.3: +4 -2 lines
Diff to previous 1.3 (colored) to selected 1.204 (colored)

Introduced ${.OBJDIR}. The variable is similar to .CURDIR but points at
the directory where make builds the targets. It can be used to clean up
those cumbersome Makefiles that have to guess at the "obj" directory.

Revision 1.3 / (download) - annotate - [select for diffs], Sun Aug 1 07:31:03 1993 UTC (30 years, 7 months ago) by mycroft
Branch: MAIN
Changes since 1.2: +2 -1 lines
Diff to previous 1.2 (colored) to selected 1.204 (colored)

Add RCS indentifiers.

Revision 1.2 / (download) - annotate - [select for diffs], Thu Apr 22 03:27:37 1993 UTC (30 years, 11 months ago) by mycroft
Branch: MAIN
CVS Tags: netbsd-0-9-base, netbsd-0-9-RELEASE, netbsd-0-9-BETA, netbsd-0-9-ALPHA2, netbsd-0-9-ALPHA, netbsd-0-9
Changes since 1.1: +2 -1 lines
Diff to previous 1.1 (colored) to selected 1.204 (colored)

Fix various bugs in man pages (from 386BSD patch 130).

Revision 1.1 / (download) - annotate - [select for diffs], Sun Mar 21 09:45:37 1993 UTC (31 years ago) by cgd
Branch: MAIN
Diff to selected 1.204 (colored)

Initial revision

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.




CVSweb <webmaster@jp.NetBSD.org>