CVS commit: src/usr.bin/make

2024-05-28 Thread Simon J. Gerraty
Module Name:src Committed By: sjg Date: Tue May 28 19:09:04 UTC 2024 Modified Files: src/usr.bin/make: main.c make.1 Log Message: make: allow debugging the warning about .OBJDIR When make complains about an unwritable .OBJDIR it is not always obvious how we derrived that

CVS commit: src/usr.bin/make

2024-05-28 Thread Simon J. Gerraty
Module Name:src Committed By: sjg Date: Tue May 28 19:09:04 UTC 2024 Modified Files: src/usr.bin/make: main.c make.1 Log Message: make: allow debugging the warning about .OBJDIR When make complains about an unwritable .OBJDIR it is not always obvious how we derrived that

CVS commit: src/usr.bin/make

2024-05-20 Thread Simon J. Gerraty
Module Name:src Committed By: sjg Date: Mon May 20 19:14:12 UTC 2024 Modified Files: src/usr.bin/make: dir.c Log Message: make: cleanup style in FindFile Since we removed the last check for isinclude, restore to the previous indentation etc. No functional change. To

CVS commit: src/usr.bin/make

2024-05-20 Thread Simon J. Gerraty
Module Name:src Committed By: sjg Date: Mon May 20 19:14:12 UTC 2024 Modified Files: src/usr.bin/make: dir.c Log Message: make: cleanup style in FindFile Since we removed the last check for isinclude, restore to the previous indentation etc. No functional change. To

Re: CVS commit: src/usr.bin/make

2024-05-20 Thread Simon J. Gerraty
Taylor R Campbell wrote: > Can you please back this out promptly, add automatic tests for > whatever the underlying issue is, and redo it another way? I did a scan of miss-use of <>, and looks like libc might have an issue: lib/libc/arch/arm/Makefile.inc:28:.include expects to find

Re: CVS commit: src/usr.bin/make

2024-05-20 Thread Simon J. Gerraty
Taylor R Campbell wrote: > > --- cleandir-libterminfo --- > nbmake[5]: "/tmp/build/2024.05.19.20.09.40-i386/src/lib/libterminfo/Makefile" > line 50: Could not find Makefile.hash > > Can you please back this out promptly, add automatic tests for > whatever the underlying issue is, and redo it

CVS commit: src/usr.bin/make

2024-05-20 Thread Simon J. Gerraty
Module Name:src Committed By: sjg Date: Mon May 20 16:04:46 UTC 2024 Modified Files: src/usr.bin/make: dir.c Log Message: Allow .include <> to search .CURDIR last libc at least appears to depend on this. To generate a diff of this commit: cvs rdiff -u -r1.288 -r1.289

CVS commit: src/usr.bin/make

2024-05-20 Thread Simon J. Gerraty
Module Name:src Committed By: sjg Date: Mon May 20 16:04:46 UTC 2024 Modified Files: src/usr.bin/make: dir.c Log Message: Allow .include <> to search .CURDIR last libc at least appears to depend on this. To generate a diff of this commit: cvs rdiff -u -r1.288 -r1.289

CVS commit: src/usr.bin/make

2024-05-19 Thread Simon J. Gerraty
Module Name:src Committed By: sjg Date: Sun May 19 20:09:40 UTC 2024 Modified Files: src/usr.bin/make: dir.c dir.h parse.c Log Message: make: use separate function to include makefiles. Have Dir_FindFile and Dir_FindInclude call FindFile with a bool flag to indicate

CVS commit: src/usr.bin/make

2024-05-19 Thread Simon J. Gerraty
Module Name:src Committed By: sjg Date: Sun May 19 20:09:40 UTC 2024 Modified Files: src/usr.bin/make: dir.c dir.h parse.c Log Message: make: use separate function to include makefiles. Have Dir_FindFile and Dir_FindInclude call FindFile with a bool flag to indicate

CVS commit: src/usr.bin/make

2024-05-19 Thread Simon J. Gerraty
Module Name:src Committed By: sjg Date: Sun May 19 17:55:55 UTC 2024 Modified Files: src/usr.bin/make: dir.c main.c src/usr.bin/make/unit-tests: deptgt-phony.exp Log Message: Dir_FindFile treat sysIncPath and defSysIncPath as special Rather than play games with

CVS commit: src/usr.bin/make

2024-05-19 Thread Simon J. Gerraty
Module Name:src Committed By: sjg Date: Sun May 19 17:55:55 UTC 2024 Modified Files: src/usr.bin/make: dir.c main.c src/usr.bin/make/unit-tests: deptgt-phony.exp Log Message: Dir_FindFile treat sysIncPath and defSysIncPath as special Rather than play games with

CVS commit: src/usr.bin/make

2024-05-07 Thread Simon J. Gerraty
Module Name:src Committed By: sjg Date: Tue May 7 18:26:22 UTC 2024 Modified Files: src/usr.bin/make: job.c main.c make.h var.c src/usr.bin/make/unit-tests: opt-debug-graph1.exp opt-debug-graph2.exp opt-debug-graph3.exp suff-main-several.exp

CVS commit: src/usr.bin/make

2024-05-07 Thread Simon J. Gerraty
Module Name:src Committed By: sjg Date: Tue May 7 18:26:22 UTC 2024 Modified Files: src/usr.bin/make: job.c main.c make.h var.c src/usr.bin/make/unit-tests: opt-debug-graph1.exp opt-debug-graph2.exp opt-debug-graph3.exp suff-main-several.exp

CVS commit: src/usr.bin/make/unit-tests

2024-04-30 Thread Simon J. Gerraty
Module Name:src Committed By: sjg Date: Tue Apr 30 16:41:33 UTC 2024 Modified Files: src/usr.bin/make/unit-tests: Makefile deptgt-phony.exp Log Message: Subst DEFSYSPATH in deptgt-phony To generate a diff of this commit: cvs rdiff -u -r1.343 -r1.344

CVS commit: src/usr.bin/make/unit-tests

2024-04-30 Thread Simon J. Gerraty
Module Name:src Committed By: sjg Date: Tue Apr 30 16:41:33 UTC 2024 Modified Files: src/usr.bin/make/unit-tests: Makefile deptgt-phony.exp Log Message: Subst DEFSYSPATH in deptgt-phony To generate a diff of this commit: cvs rdiff -u -r1.343 -r1.344

CVS commit: src/usr.bin/make

2024-04-30 Thread Simon J. Gerraty
Module Name:src Committed By: sjg Date: Tue Apr 30 16:13:34 UTC 2024 Modified Files: src/usr.bin/make: main.c src/usr.bin/make/unit-tests: deptgt-phony.exp opt-m-include-dir.mk Log Message: make: ensure '.include ' respects MAKESYSPATH Since Dir_FindFile is used

CVS commit: src/usr.bin/make

2024-04-30 Thread Simon J. Gerraty
Module Name:src Committed By: sjg Date: Tue Apr 30 16:13:34 UTC 2024 Modified Files: src/usr.bin/make: main.c src/usr.bin/make/unit-tests: deptgt-phony.exp opt-m-include-dir.mk Log Message: make: ensure '.include ' respects MAKESYSPATH Since Dir_FindFile is used

CVS commit: src/usr.bin/make

2024-03-09 Thread Simon J. Gerraty
Module Name:src Committed By: sjg Date: Sun Mar 10 02:53:38 UTC 2024 Modified Files: src/usr.bin/make: compat.c job.c main.c make.1 make.h targ.c Log Message: make: record exit status in GNode SetErrorVars can now set .ERROR_EXIT which allows a .ERROR target to ignore

CVS commit: src/usr.bin/make

2024-03-09 Thread Simon J. Gerraty
Module Name:src Committed By: sjg Date: Sun Mar 10 02:53:38 UTC 2024 Modified Files: src/usr.bin/make: compat.c job.c main.c make.1 make.h targ.c Log Message: make: record exit status in GNode SetErrorVars can now set .ERROR_EXIT which allows a .ERROR target to ignore

CVS commit: src/usr.bin/make/unit-tests

2024-03-01 Thread Simon J. Gerraty
Module Name:src Committed By: sjg Date: Fri Mar 1 20:15:59 UTC 2024 Modified Files: src/usr.bin/make/unit-tests: var-scope-local.exp var-scope-local.mk Log Message: make: update var-scope-local test Show what VAR value is in environment of target script. To generate a

CVS commit: src/usr.bin/make/unit-tests

2024-03-01 Thread Simon J. Gerraty
Module Name:src Committed By: sjg Date: Fri Mar 1 20:15:59 UTC 2024 Modified Files: src/usr.bin/make/unit-tests: var-scope-local.exp var-scope-local.mk Log Message: make: update var-scope-local test Show what VAR value is in environment of target script. To generate a

CVS commit: src/usr.bin/make

2024-03-01 Thread Simon J. Gerraty
Module Name:src Committed By: sjg Date: Fri Mar 1 16:41:42 UTC 2024 Modified Files: src/usr.bin/make: compat.c job.c main.c make.h var.c Log Message: make: export target scope values Pass target scope to Var_ReexportVars so that a target process will see the correct

CVS commit: src/usr.bin/make

2024-03-01 Thread Simon J. Gerraty
Module Name:src Committed By: sjg Date: Fri Mar 1 16:41:42 UTC 2024 Modified Files: src/usr.bin/make: compat.c job.c main.c make.h var.c Log Message: make: export target scope values Pass target scope to Var_ReexportVars so that a target process will see the correct

CVS commit: src/usr.bin/make

2024-02-02 Thread Simon J. Gerraty
Module Name:src Committed By: sjg Date: Sat Feb 3 00:20:23 UTC 2024 Modified Files: src/usr.bin/make: var.c src/usr.bin/make/unit-tests: varmod.exp varmod.mk Log Message: make: state of save_dollars affects what is a parse error When save_dollars is false it is

CVS commit: src/usr.bin/make

2024-02-02 Thread Simon J. Gerraty
Module Name:src Committed By: sjg Date: Sat Feb 3 00:20:23 UTC 2024 Modified Files: src/usr.bin/make: var.c src/usr.bin/make/unit-tests: varmod.exp varmod.mk Log Message: make: state of save_dollars affects what is a parse error When save_dollars is false it is

CVS commit: src/usr.bin/make

2024-01-25 Thread Simon J. Gerraty
Module Name:src Committed By: sjg Date: Thu Jan 25 21:00:59 UTC 2024 Modified Files: src/usr.bin/make: make.1 Log Message: Note that in both :U and :D newval may be empty To generate a diff of this commit: cvs rdiff -u -r1.373 -r1.374 src/usr.bin/make/make.1 Please

CVS commit: src/usr.bin/make

2024-01-25 Thread Simon J. Gerraty
Module Name:src Committed By: sjg Date: Thu Jan 25 21:00:59 UTC 2024 Modified Files: src/usr.bin/make: make.1 Log Message: Note that in both :U and :D newval may be empty To generate a diff of this commit: cvs rdiff -u -r1.373 -r1.374 src/usr.bin/make/make.1 Please

CVS commit: src/usr.bin/make

2024-01-24 Thread Simon J. Gerraty
Module Name:src Committed By: sjg Date: Thu Jan 25 07:35:46 UTC 2024 Modified Files: src/usr.bin/make: make.1 Log Message: Indicate that for :U newval is optional To generate a diff of this commit: cvs rdiff -u -r1.372 -r1.373 src/usr.bin/make/make.1 Please note that

CVS commit: src/usr.bin/make

2024-01-24 Thread Simon J. Gerraty
Module Name:src Committed By: sjg Date: Thu Jan 25 07:35:46 UTC 2024 Modified Files: src/usr.bin/make: make.1 Log Message: Indicate that for :U newval is optional To generate a diff of this commit: cvs rdiff -u -r1.372 -r1.373 src/usr.bin/make/make.1 Please note that

CVS commit: src/usr.bin/make/unit-tests

2024-01-06 Thread Simon J. Gerraty
Module Name:src Committed By: sjg Date: Sun Jan 7 02:07:44 UTC 2024 Modified Files: src/usr.bin/make/unit-tests: Makefile Log Message: make: unit-tests handle TEST_MAKE:T != make We need to allow for ${TEST_MAKE:T}[1-9]: etc when TEST_MAKE is not 'make' To generate a

CVS commit: src/usr.bin/make/unit-tests

2024-01-06 Thread Simon J. Gerraty
Module Name:src Committed By: sjg Date: Sun Jan 7 02:07:44 UTC 2024 Modified Files: src/usr.bin/make/unit-tests: Makefile Log Message: make: unit-tests handle TEST_MAKE:T != make We need to allow for ${TEST_MAKE:T}[1-9]: etc when TEST_MAKE is not 'make' To generate a

CVS commit: src/usr.bin/make

2024-01-06 Thread Simon J. Gerraty
Module Name:src Committed By: sjg Date: Sun Jan 7 01:33:58 UTC 2024 Modified Files: src/usr.bin/make: job.c main.c src/usr.bin/make/unit-tests: jobs-error-indirect.exp jobs-error-nested-make.exp jobs-error-nested.exp var-recursive.exp Log Message:

CVS commit: src/usr.bin/make

2024-01-06 Thread Simon J. Gerraty
Module Name:src Committed By: sjg Date: Sun Jan 7 01:33:58 UTC 2024 Modified Files: src/usr.bin/make: job.c main.c src/usr.bin/make/unit-tests: jobs-error-indirect.exp jobs-error-nested-make.exp jobs-error-nested.exp var-recursive.exp Log Message:

CVS commit: src/usr.bin/make

2024-01-05 Thread Simon J. Gerraty
Module Name:src Committed By: sjg Date: Fri Jan 5 22:20:07 UTC 2024 Modified Files: src/usr.bin/make: main.c Log Message: Cmd_Exec use tempfile if cmd is too big To avoid blowing commandline/env limits, if "cmd" is more than 1000 bytes, write it to a file and pass that

CVS commit: src/usr.bin/make

2024-01-05 Thread Simon J. Gerraty
Module Name:src Committed By: sjg Date: Fri Jan 5 22:20:07 UTC 2024 Modified Files: src/usr.bin/make: main.c Log Message: Cmd_Exec use tempfile if cmd is too big To avoid blowing commandline/env limits, if "cmd" is more than 1000 bytes, write it to a file and pass that

CVS commit: src/usr.bin/make

2024-01-03 Thread Simon J. Gerraty
Module Name:src Committed By: sjg Date: Wed Jan 3 20:24:16 UTC 2024 Modified Files: src/usr.bin/make: parse.c Log Message: make: do not add newline to an empty buffer When LoadFile reads from /dev/null the buffer will be empty, appending "\n" just results in an

CVS commit: src/usr.bin/make

2024-01-03 Thread Simon J. Gerraty
Module Name:src Committed By: sjg Date: Wed Jan 3 20:24:16 UTC 2024 Modified Files: src/usr.bin/make: parse.c Log Message: make: do not add newline to an empty buffer When LoadFile reads from /dev/null the buffer will be empty, appending "\n" just results in an

CVS commit: src/usr.bin/make

2023-12-26 Thread Simon J. Gerraty
Module Name:src Committed By: sjg Date: Wed Dec 27 00:45:37 UTC 2023 Modified Files: src/usr.bin/make: main.c Log Message: make: ensure shellPath is set before using it. To generate a diff of this commit: cvs rdiff -u -r1.605 -r1.606 src/usr.bin/make/main.c Please note

CVS commit: src/usr.bin/make

2023-12-26 Thread Simon J. Gerraty
Module Name:src Committed By: sjg Date: Wed Dec 27 00:45:37 UTC 2023 Modified Files: src/usr.bin/make: main.c Log Message: make: ensure shellPath is set before using it. To generate a diff of this commit: cvs rdiff -u -r1.605 -r1.606 src/usr.bin/make/main.c Please note

CVS commit: src/usr.bin/make

2023-12-26 Thread Simon J. Gerraty
Module Name:src Committed By: sjg Date: Tue Dec 26 20:09:42 UTC 2023 Modified Files: src/usr.bin/make: compat.c Log Message: Move fflush to a point to catch all cases. To generate a diff of this commit: cvs rdiff -u -r1.250 -r1.251 src/usr.bin/make/compat.c Please note

CVS commit: src/usr.bin/make

2023-12-26 Thread Simon J. Gerraty
Module Name:src Committed By: sjg Date: Tue Dec 26 20:09:42 UTC 2023 Modified Files: src/usr.bin/make: compat.c Log Message: Move fflush to a point to catch all cases. To generate a diff of this commit: cvs rdiff -u -r1.250 -r1.251 src/usr.bin/make/compat.c Please note

CVS commit: src/usr.bin/make

2023-12-26 Thread Simon J. Gerraty
Module Name:src Committed By: sjg Date: Tue Dec 26 17:12:33 UTC 2023 Modified Files: src/usr.bin/make: compat.c src/usr.bin/make/unit-tests: depsrc-ignore.exp deptgt-delete_on_error.exp sh-leading-hyphen.exp Log Message: make: fix order of output in

CVS commit: src/usr.bin/make

2023-12-26 Thread Simon J. Gerraty
Module Name:src Committed By: sjg Date: Tue Dec 26 17:12:33 UTC 2023 Modified Files: src/usr.bin/make: compat.c src/usr.bin/make/unit-tests: depsrc-ignore.exp deptgt-delete_on_error.exp sh-leading-hyphen.exp Log Message: make: fix order of output in

CVS commit: src/usr.bin/make

2023-12-24 Thread Simon J. Gerraty
Module Name:src Committed By: sjg Date: Sun Dec 24 16:48:30 UTC 2023 Modified Files: src/usr.bin/make: compat.c make.1 src/usr.bin/make/unit-tests: shell-sh.mk Log Message: Compat_RunCommand call Shell_Init is shellPath is NULL Since .SHELL is potentially used in

CVS commit: src/usr.bin/make

2023-12-24 Thread Simon J. Gerraty
Module Name:src Committed By: sjg Date: Sun Dec 24 16:48:30 UTC 2023 Modified Files: src/usr.bin/make: compat.c make.1 src/usr.bin/make/unit-tests: shell-sh.mk Log Message: Compat_RunCommand call Shell_Init is shellPath is NULL Since .SHELL is potentially used in

CVS commit: src/usr.bin/make

2023-12-08 Thread Simon J. Gerraty
Module Name:src Committed By: sjg Date: Sat Dec 9 00:13:38 UTC 2023 Modified Files: src/usr.bin/make: var.c src/usr.bin/make/unit-tests: varname-dot-shell.exp Log Message: make: Var_SetWithFlags set fromCmd for SCOPE_CMDLINE Set fromCmd true for SCOPE_CMDLINE

CVS commit: src/usr.bin/make

2023-12-08 Thread Simon J. Gerraty
Module Name:src Committed By: sjg Date: Sat Dec 9 00:13:38 UTC 2023 Modified Files: src/usr.bin/make: var.c src/usr.bin/make/unit-tests: varname-dot-shell.exp Log Message: make: Var_SetWithFlags set fromCmd for SCOPE_CMDLINE Set fromCmd true for SCOPE_CMDLINE

CVS commit: src/usr.bin/make/unit-tests

2023-09-10 Thread Simon J. Gerraty
Module Name:src Committed By: sjg Date: Sun Sep 10 16:25:32 UTC 2023 Modified Files: src/usr.bin/make/unit-tests: opt-jobs.mk varname-dot-make-jobs.mk Log Message: make: skip -jC tests unless .MAKE.JOBS.C is yes To generate a diff of this commit: cvs rdiff -u -r1.4

CVS commit: src/usr.bin/make/unit-tests

2023-09-10 Thread Simon J. Gerraty
Module Name:src Committed By: sjg Date: Sun Sep 10 16:25:32 UTC 2023 Modified Files: src/usr.bin/make/unit-tests: opt-jobs.mk varname-dot-make-jobs.mk Log Message: make: skip -jC tests unless .MAKE.JOBS.C is yes To generate a diff of this commit: cvs rdiff -u -r1.4

CVS commit: src/usr.bin/make

2023-09-09 Thread Simon J. Gerraty
Module Name:src Committed By: sjg Date: Sat Sep 9 16:41:04 UTC 2023 Modified Files: src/usr.bin/make: main.c make.1 src/usr.bin/make/unit-tests: Makefile opt-debug-graph1.exp opt-debug-graph2.exp opt-debug-graph3.exp suff-main-several.exp

CVS commit: src/usr.bin/make

2023-09-09 Thread Simon J. Gerraty
Module Name:src Committed By: sjg Date: Sat Sep 9 16:41:04 UTC 2023 Modified Files: src/usr.bin/make: main.c make.1 src/usr.bin/make/unit-tests: Makefile opt-debug-graph1.exp opt-debug-graph2.exp opt-debug-graph3.exp suff-main-several.exp

CVS commit: src/usr.bin/make

2023-09-08 Thread Simon J. Gerraty
Module Name:src Committed By: sjg Date: Sat Sep 9 01:30:59 UTC 2023 Modified Files: src/usr.bin/make: main.c make.1 src/usr.bin/make/unit-tests: varname-dot-make-jobs.exp varname-dot-make-jobs.mk Log Message: make: allow -j to compute a multiple of

CVS commit: src/usr.bin/make

2023-09-08 Thread Simon J. Gerraty
Module Name:src Committed By: sjg Date: Sat Sep 9 01:30:59 UTC 2023 Modified Files: src/usr.bin/make: main.c make.1 src/usr.bin/make/unit-tests: varname-dot-make-jobs.exp varname-dot-make-jobs.mk Log Message: make: allow -j to compute a multiple of

CVS commit: src/usr.bin/make

2023-08-20 Thread Simon J. Gerraty
Module Name:src Committed By: sjg Date: Sun Aug 20 19:58:15 UTC 2023 Modified Files: src/usr.bin/make: make.1 Log Message: make.1: note that %s should only be used with :localtime To generate a diff of this commit: cvs rdiff -u -r1.367 -r1.368 src/usr.bin/make/make.1

CVS commit: src/usr.bin/make

2023-08-20 Thread Simon J. Gerraty
Module Name:src Committed By: sjg Date: Sun Aug 20 19:58:15 UTC 2023 Modified Files: src/usr.bin/make: make.1 Log Message: make.1: note that %s should only be used with :localtime To generate a diff of this commit: cvs rdiff -u -r1.367 -r1.368 src/usr.bin/make/make.1

CVS commit: src/usr.bin/make/unit-tests

2023-08-18 Thread Simon J. Gerraty
Module Name:src Committed By: sjg Date: Sat Aug 19 01:34:21 UTC 2023 Modified Files: src/usr.bin/make/unit-tests: varmod-mtime.exp varmod-mtime.mk Log Message: varmod-mtime.mk: use :localtime for %s Add a comment to explain why ${%s:L:localtime} should be used to get a

CVS commit: src/usr.bin/make/unit-tests

2023-08-18 Thread Simon J. Gerraty
Module Name:src Committed By: sjg Date: Sat Aug 19 01:34:21 UTC 2023 Modified Files: src/usr.bin/make/unit-tests: varmod-mtime.exp varmod-mtime.mk Log Message: varmod-mtime.mk: use :localtime for %s Add a comment to explain why ${%s:L:localtime} should be used to get a

CVS commit: src/usr.bin/make

2023-08-18 Thread Simon J. Gerraty
Module Name:src Committed By: sjg Date: Sat Aug 19 00:09:17 UTC 2023 Modified Files: src/usr.bin/make: meta.c Log Message: meta_ignore: check metaIgnorePaths on raw path Some path prefixes can trigger automount, if we want to ignore them it might be best to check

CVS commit: src/usr.bin/make

2023-08-18 Thread Simon J. Gerraty
Module Name:src Committed By: sjg Date: Sat Aug 19 00:09:17 UTC 2023 Modified Files: src/usr.bin/make: meta.c Log Message: meta_ignore: check metaIgnorePaths on raw path Some path prefixes can trigger automount, if we want to ignore them it might be best to check

CVS commit: src/usr.bin/make/unit-tests

2023-06-21 Thread Simon J. Gerraty
Module Name:src Committed By: sjg Date: Wed Jun 21 21:21:52 UTC 2023 Modified Files: src/usr.bin/make/unit-tests: directive-include-guard.exp directive-include-guard.mk Log Message: Cleanup guard tests The .PARSEFILE:tA tests add no value, the correct form is

CVS commit: src/usr.bin/make/unit-tests

2023-06-21 Thread Simon J. Gerraty
Module Name:src Committed By: sjg Date: Wed Jun 21 21:21:52 UTC 2023 Modified Files: src/usr.bin/make/unit-tests: directive-include-guard.exp directive-include-guard.mk Log Message: Cleanup guard tests The .PARSEFILE:tA tests add no value, the correct form is

CVS commit: src/usr.bin/make

2023-06-20 Thread Simon J. Gerraty
Module Name:src Committed By: sjg Date: Wed Jun 21 04:20:21 UTC 2023 Modified Files: src/usr.bin/make: cond.c src/usr.bin/make/unit-tests: directive-include-guard.exp directive-include-guard.mk Log Message: Allow guard targets to use variables. I

CVS commit: src/usr.bin/make

2023-06-20 Thread Simon J. Gerraty
Module Name:src Committed By: sjg Date: Wed Jun 21 04:20:21 UTC 2023 Modified Files: src/usr.bin/make: cond.c src/usr.bin/make/unit-tests: directive-include-guard.exp directive-include-guard.mk Log Message: Allow guard targets to use variables. I

CVS commit: src/usr.bin/make/unit-tests

2023-06-19 Thread Simon J. Gerraty
Module Name:src Committed By: sjg Date: Mon Jun 19 15:37:48 UTC 2023 Modified Files: src/usr.bin/make/unit-tests: var-readonly.mk Log Message: Test that .undef of readOnly variable fails To generate a diff of this commit: cvs rdiff -u -r1.2 -r1.3

CVS commit: src/usr.bin/make/unit-tests

2023-06-19 Thread Simon J. Gerraty
Module Name:src Committed By: sjg Date: Mon Jun 19 15:37:48 UTC 2023 Modified Files: src/usr.bin/make/unit-tests: var-readonly.mk Log Message: Test that .undef of readOnly variable fails To generate a diff of this commit: cvs rdiff -u -r1.2 -r1.3

CVS commit: src/usr.bin/make

2023-06-16 Thread Simon J. Gerraty
Module Name:src Committed By: sjg Date: Fri Jun 16 22:30:35 UTC 2023 Modified Files: src/usr.bin/make: var.c Log Message: make: do not allow delete of readOnly variable. Sometimes we mark a variable readOnly to guard against .undef To generate a diff of this commit:

CVS commit: src/usr.bin/make

2023-06-16 Thread Simon J. Gerraty
Module Name:src Committed By: sjg Date: Fri Jun 16 22:30:35 UTC 2023 Modified Files: src/usr.bin/make: var.c Log Message: make: do not allow delete of readOnly variable. Sometimes we mark a variable readOnly to guard against .undef To generate a diff of this commit:

CVS commit: src/usr.bin/make

2023-05-10 Thread Simon J. Gerraty
Module Name:src Committed By: sjg Date: Wed May 10 18:22:33 UTC 2023 Modified Files: src/usr.bin/make: make.1 var.c Log Message: Make :mtime operate on each word in variable value. Reviewed by: rillig To generate a diff of this commit: cvs rdiff -u -r1.365 -r1.366

CVS commit: src/usr.bin/make

2023-05-10 Thread Simon J. Gerraty
Module Name:src Committed By: sjg Date: Wed May 10 18:22:33 UTC 2023 Modified Files: src/usr.bin/make: make.1 var.c Log Message: Make :mtime operate on each word in variable value. Reviewed by: rillig To generate a diff of this commit: cvs rdiff -u -r1.365 -r1.366

CVS commit: src/usr.bin/make

2023-05-09 Thread Simon J. Gerraty
Module Name:src Committed By: sjg Date: Tue May 9 20:53:23 UTC 2023 Modified Files: src/usr.bin/make: make.1 var.c Log Message: make: :mtime=error throw error on stat(2) failure Sometimes we want fatal error if stat fails on the presumed pathname. To generate a diff

CVS commit: src/usr.bin/make

2023-05-09 Thread Simon J. Gerraty
Module Name:src Committed By: sjg Date: Tue May 9 20:53:23 UTC 2023 Modified Files: src/usr.bin/make: make.1 var.c Log Message: make: :mtime=error throw error on stat(2) failure Sometimes we want fatal error if stat fails on the presumed pathname. To generate a diff

CVS commit: src

2023-05-09 Thread Simon J. Gerraty
Module Name:src Committed By: sjg Date: Tue May 9 20:14:28 UTC 2023 Modified Files: src/distrib/sets/lists/tests: mi src/usr.bin/make: make.1 var.c src/usr.bin/make/unit-tests: Makefile Added Files: src/usr.bin/make/unit-tests: varmod-mtime.exp

CVS commit: src

2023-05-09 Thread Simon J. Gerraty
Module Name:src Committed By: sjg Date: Tue May 9 20:14:28 UTC 2023 Modified Files: src/distrib/sets/lists/tests: mi src/usr.bin/make: make.1 var.c src/usr.bin/make/unit-tests: Makefile Added Files: src/usr.bin/make/unit-tests: varmod-mtime.exp

CVS commit: src/usr.bin/make

2023-05-07 Thread Simon J. Gerraty
Module Name:src Committed By: sjg Date: Sun May 7 16:43:50 UTC 2023 Modified Files: src/usr.bin/make: make.1 Log Message: make.1: lose the trailing blank lines To generate a diff of this commit: cvs rdiff -u -r1.362 -r1.363 src/usr.bin/make/make.1 Please note that

CVS commit: src/usr.bin/make

2023-05-07 Thread Simon J. Gerraty
Module Name:src Committed By: sjg Date: Sun May 7 16:43:50 UTC 2023 Modified Files: src/usr.bin/make: make.1 Log Message: make.1: lose the trailing blank lines To generate a diff of this commit: cvs rdiff -u -r1.362 -r1.363 src/usr.bin/make/make.1 Please note that

CVS commit: src/usr.bin/make

2023-05-07 Thread Simon J. Gerraty
Module Name:src Committed By: sjg Date: Sun May 7 16:32:48 UTC 2023 Modified Files: src/usr.bin/make: make.1 Log Message: make: fix description of .PREFIX For at least 20 years, the setting of .PREFIX in make has not matched the documentation. Since the documented

CVS commit: src/usr.bin/make

2023-05-07 Thread Simon J. Gerraty
Module Name:src Committed By: sjg Date: Sun May 7 16:32:48 UTC 2023 Modified Files: src/usr.bin/make: make.1 Log Message: make: fix description of .PREFIX For at least 20 years, the setting of .PREFIX in make has not matched the documentation. Since the documented

CVS commit: src/usr.bin/make

2023-05-04 Thread Simon J. Gerraty
Module Name:src Committed By: sjg Date: Thu May 4 22:31:17 UTC 2023 Modified Files: src/usr.bin/make: compat.c Log Message: Compat_RunCommand mark bp volatile gcc 4.8.5 (NetBSD 7.2) gets upset about bp. To generate a diff of this commit: cvs rdiff -u -r1.246 -r1.247

CVS commit: src/usr.bin/make

2023-05-04 Thread Simon J. Gerraty
Module Name:src Committed By: sjg Date: Thu May 4 22:31:17 UTC 2023 Modified Files: src/usr.bin/make: compat.c Log Message: Compat_RunCommand mark bp volatile gcc 4.8.5 (NetBSD 7.2) gets upset about bp. To generate a diff of this commit: cvs rdiff -u -r1.246 -r1.247

CVS commit: src/usr.bin/make

2023-03-22 Thread Simon J. Gerraty
Module Name:src Committed By: sjg Date: Thu Mar 23 03:29:28 UTC 2023 Modified Files: src/usr.bin/make: make.1 Log Message: Document unexplained *** Error code 6 To generate a diff of this commit: cvs rdiff -u -r1.360 -r1.361 src/usr.bin/make/make.1 Please note that

CVS commit: src/usr.bin/make

2023-03-22 Thread Simon J. Gerraty
Module Name:src Committed By: sjg Date: Thu Mar 23 03:29:28 UTC 2023 Modified Files: src/usr.bin/make: make.1 Log Message: Document unexplained *** Error code 6 To generate a diff of this commit: cvs rdiff -u -r1.360 -r1.361 src/usr.bin/make/make.1 Please note that

CVS commit: src/usr.bin/make

2023-03-18 Thread Simon J. Gerraty
Module Name:src Committed By: sjg Date: Sat Mar 18 22:20:12 UTC 2023 Modified Files: src/usr.bin/make: compat.c src/usr.bin/make/unit-tests: cmd-interrupt.exp cmd-interrupt.mk deptgt-delete_on_error.exp Log Message: make: handle .PHONY consitently on

CVS commit: src/usr.bin/make

2023-03-18 Thread Simon J. Gerraty
Module Name:src Committed By: sjg Date: Sat Mar 18 22:20:12 UTC 2023 Modified Files: src/usr.bin/make: compat.c src/usr.bin/make/unit-tests: cmd-interrupt.exp cmd-interrupt.mk deptgt-delete_on_error.exp Log Message: make: handle .PHONY consitently on

Re: CVS commit: src/usr.bin/make

2023-02-27 Thread Simon J. Gerraty
Taylor R Campbell wrote: > That said, I don't see any reason why this should be a macro in the > first place. If there is a compelling reason, please write it down; > if not, please change it to a static function: > Sure. > static BuildMon * > BM(Job *job) > { > > return (job != NULL

CVS commit: src/usr.bin/make

2023-02-27 Thread Simon J. Gerraty
Module Name:src Committed By: sjg Date: Tue Feb 28 06:04:28 UTC 2023 Modified Files: src/usr.bin/make: meta.c Log Message: Use inline function rather that macro BM To generate a diff of this commit: cvs rdiff -u -r1.203 -r1.204 src/usr.bin/make/meta.c Please note that

CVS commit: src/usr.bin/make

2023-02-27 Thread Simon J. Gerraty
Module Name:src Committed By: sjg Date: Tue Feb 28 06:04:28 UTC 2023 Modified Files: src/usr.bin/make: meta.c Log Message: Use inline function rather that macro BM To generate a diff of this commit: cvs rdiff -u -r1.203 -r1.204 src/usr.bin/make/meta.c Please note that

CVS commit: src/usr.bin/make

2023-02-25 Thread Simon J. Gerraty
Module Name:src Committed By: sjg Date: Sat Feb 25 22:52:22 UTC 2023 Modified Files: src/usr.bin/make: meta.c Log Message: meta.c: use macro to access job->bm and if job is NULL use Mybm. No functional change. To generate a diff of this commit: cvs rdiff -u -r1.202

CVS commit: src/usr.bin/make

2023-02-25 Thread Simon J. Gerraty
Module Name:src Committed By: sjg Date: Sat Feb 25 22:52:22 UTC 2023 Modified Files: src/usr.bin/make: meta.c Log Message: meta.c: use macro to access job->bm and if job is NULL use Mybm. No functional change. To generate a diff of this commit: cvs rdiff -u -r1.202

CVS commit: src/tests/usr.bin/make

2023-02-25 Thread Simon J. Gerraty
Module Name:src Committed By: sjg Date: Sat Feb 25 19:37:33 UTC 2023 Modified Files: src/tests/usr.bin/make: t_make.sh Log Message: t_make skip varname-dot-make-meta-ignore_* The meta-ignore tests will likely not work in this environment so skip them. To generate a

CVS commit: src/tests/usr.bin/make

2023-02-25 Thread Simon J. Gerraty
Module Name:src Committed By: sjg Date: Sat Feb 25 19:37:33 UTC 2023 Modified Files: src/tests/usr.bin/make: t_make.sh Log Message: t_make skip varname-dot-make-meta-ignore_* The meta-ignore tests will likely not work in this environment so skip them. To generate a

CVS commit: src/usr.bin/make/unit-tests

2023-02-25 Thread Simon J. Gerraty
Module Name:src Committed By: sjg Date: Sat Feb 25 19:30:32 UTC 2023 Modified Files: src/usr.bin/make/unit-tests: Makefile meta-ignore.inc varname-dot-make-meta-ignore_filter.exp varname-dot-make-meta-ignore_paths.exp

CVS commit: src/usr.bin/make/unit-tests

2023-02-25 Thread Simon J. Gerraty
Module Name:src Committed By: sjg Date: Sat Feb 25 19:30:32 UTC 2023 Modified Files: src/usr.bin/make/unit-tests: Makefile meta-ignore.inc varname-dot-make-meta-ignore_filter.exp varname-dot-make-meta-ignore_paths.exp

CVS commit: src/usr.bin/make/unit-tests

2023-02-22 Thread Simon J. Gerraty
Module Name:src Committed By: sjg Date: Thu Feb 23 05:21:27 UTC 2023 Added Files: src/usr.bin/make/unit-tests: meta-ignore.inc Log Message: Add unit-tests for .MAKE.META.IGNORE_* These unit-tests should only be run if TEST_MAKE has a valid .MAKE.PATH_FILEMON to indicate

CVS commit: src/usr.bin/make/unit-tests

2023-02-22 Thread Simon J. Gerraty
Module Name:src Committed By: sjg Date: Thu Feb 23 05:21:27 UTC 2023 Added Files: src/usr.bin/make/unit-tests: meta-ignore.inc Log Message: Add unit-tests for .MAKE.META.IGNORE_* These unit-tests should only be run if TEST_MAKE has a valid .MAKE.PATH_FILEMON to indicate

CVS commit: src/usr.bin/make/unit-tests

2023-02-22 Thread Simon J. Gerraty
Module Name:src Committed By: sjg Date: Thu Feb 23 05:20:45 UTC 2023 Modified Files: src/usr.bin/make/unit-tests: Makefile varname-dot-make-meta-ignore_filter.exp varname-dot-make-meta-ignore_filter.mk

CVS commit: src/usr.bin/make/unit-tests

2023-02-22 Thread Simon J. Gerraty
Module Name:src Committed By: sjg Date: Thu Feb 23 05:20:45 UTC 2023 Modified Files: src/usr.bin/make/unit-tests: Makefile varname-dot-make-meta-ignore_filter.exp varname-dot-make-meta-ignore_filter.mk

CVS commit: src/usr.bin/make

2023-02-08 Thread Simon J. Gerraty
Module Name:src Committed By: sjg Date: Thu Feb 9 07:34:15 UTC 2023 Modified Files: src/usr.bin/make: var.c src/usr.bin/make/unit-tests: varmod-remember.mk Log Message: make: ApplyModifier_Remember always use SCOPE_GLOBAL Conditionals evaluate vars with

CVS commit: src/usr.bin/make

2023-02-08 Thread Simon J. Gerraty
Module Name:src Committed By: sjg Date: Thu Feb 9 07:34:15 UTC 2023 Modified Files: src/usr.bin/make: var.c src/usr.bin/make/unit-tests: varmod-remember.mk Log Message: make: ApplyModifier_Remember always use SCOPE_GLOBAL Conditionals evaluate vars with

CVS commit: src/usr.bin/make

2023-01-26 Thread Simon J. Gerraty
Module Name:src Committed By: sjg Date: Thu Jan 26 20:48:18 UTC 2023 Modified Files: src/usr.bin/make: main.c make.1 make.h var.c src/usr.bin/make/unit-tests: varname-dot-newline.exp varname-dot-newline.mk Log Message: make: some variables should be

  1   2   3   4   5   6   7   8   9   >