make/src
Dmitry Goncharov ec348f51d0 Replace target_var boolean with enum variable_scope
Replace the target_var boolean with an enum to distinguish between
global, target-specific, and pattern-specific variables when defining.

* src/variable.h (enum variable_scope): Introduce enum variable_scope.
Replace parameter target_var of type int with enum variable_scope.
* src/load.c (load_file): Ditto.
* src/main.c (handle_non_switch_argument): Ditto.
* src/read.c (eval_makefile): Ditto.
(eval): Ditto.
(do_define): Ditto.
(record_target_var): Ditto.
(construct_include_path): Ditto.
* src/variable.c (initialize_file_variables): Ditto.
(shell_result): Ditto.
(try_variable_definition): Ditto.
(do_variable_definition): Ditto.
2024-02-04 11:32:50 -05:00
..
w32 * (all): Update Copyright year to 2024 2024-01-06 18:06:09 -05:00
ar.c * (all): Update Copyright year to 2024 2024-01-06 18:06:09 -05:00
arscan.c * (all): Update Copyright year to 2024 2024-01-06 18:06:09 -05:00
commands.c * (all): Update Copyright year to 2024 2024-01-06 18:06:09 -05:00
commands.h * (all): Update Copyright year to 2024 2024-01-06 18:06:09 -05:00
config.h-vms * (all): Update Copyright year to 2024 2024-01-06 18:06:09 -05:00
config.h.W32 * (all): Update Copyright year to 2024 2024-01-06 18:06:09 -05:00
configh.dos * (all): Update Copyright year to 2024 2024-01-06 18:06:09 -05:00
debug.h * (all): Update Copyright year to 2024 2024-01-06 18:06:09 -05:00
default.c * (all): Update Copyright year to 2024 2024-01-06 18:06:09 -05:00
dep.h * (all): Update Copyright year to 2024 2024-01-06 18:06:09 -05:00
dir.c * (all): Update Copyright year to 2024 2024-01-06 18:06:09 -05:00
expand.c Create a common method for skipping variable references 2024-01-27 16:40:36 -05:00
file.c [SV 64571] Add --print-targets option 2024-01-08 23:31:58 -05:00
filedef.h [SV 64571] Add --print-targets option 2024-01-08 23:31:58 -05:00
function.c Create a common method for skipping variable references 2024-01-27 16:40:36 -05:00
getopt1.c * (all): Update Copyright year to 2024 2024-01-06 18:06:09 -05:00
getopt.c * (all): Update Copyright year to 2024 2024-01-06 18:06:09 -05:00
getopt.h * (all): Update Copyright year to 2024 2024-01-06 18:06:09 -05:00
gettext.h * (all): Update Copyright year to 2024 2024-01-06 18:06:09 -05:00
gmk-default.scm * (all): Update Copyright year to 2024 2024-01-06 18:06:09 -05:00
gnumake.h * (all): Update Copyright year to 2024 2024-01-06 18:06:09 -05:00
guile.c * (all): Update Copyright year to 2024 2024-01-06 18:06:09 -05:00
hash.c * src/hash.c (jhash_string): Help the compiler optimize the hash 2022-11-13 10:38:50 -05:00
hash.h Rename WINDOWS32 macro to MK_OS_W32 2023-01-15 18:27:13 -05:00
implicit.c Create a common method for skipping variable references 2024-01-27 16:40:36 -05:00
job.c Create a common method for skipping variable references 2024-01-27 16:40:36 -05:00
job.h * (all): Update Copyright year to 2024 2024-01-06 18:06:09 -05:00
load.c Replace target_var boolean with enum variable_scope 2024-02-04 11:32:50 -05:00
loadapi.c * (all): Update Copyright year to 2024 2024-01-06 18:06:09 -05:00
main.c Replace target_var boolean with enum variable_scope 2024-02-04 11:32:50 -05:00
makeint.h Create a common method for skipping variable references 2024-01-27 16:40:36 -05:00
misc.c Create a common method for skipping variable references 2024-01-27 16:40:36 -05:00
mkconfig.h.in * (all): Update Copyright year to 2024 2024-01-06 18:06:09 -05:00
mkcustom.h * (all): Update Copyright year to 2024 2024-01-06 18:06:09 -05:00
os.h * (all): Update Copyright year to 2024 2024-01-06 18:06:09 -05:00
output.c * (all): Update Copyright year to 2024 2024-01-06 18:06:09 -05:00
output.h * (all): Update Copyright year to 2024 2024-01-06 18:06:09 -05:00
posixos.c * (all): Update Copyright year to 2024 2024-01-06 18:06:09 -05:00
read.c Replace target_var boolean with enum variable_scope 2024-02-04 11:32:50 -05:00
remake.c * (all): Update Copyright year to 2024 2024-01-06 18:06:09 -05:00
remote-cstms.c * (all): Update Copyright year to 2024 2024-01-06 18:06:09 -05:00
remote-stub.c * (all): Update Copyright year to 2024 2024-01-06 18:06:09 -05:00
rule.c [SV 64571] Add --print-targets option 2024-01-08 23:31:58 -05:00
rule.h * (all): Update Copyright year to 2024 2024-01-06 18:06:09 -05:00
shuffle.c * (all): Update Copyright year to 2024 2024-01-06 18:06:09 -05:00
shuffle.h * (all): Update Copyright year to 2024 2024-01-06 18:06:09 -05:00
signame.c * (all): Update Copyright year to 2024 2024-01-06 18:06:09 -05:00
strcache.c * (all): Update Copyright year to 2024 2024-01-06 18:06:09 -05:00
variable.c Replace target_var boolean with enum variable_scope 2024-02-04 11:32:50 -05:00
variable.h Replace target_var boolean with enum variable_scope 2024-02-04 11:32:50 -05:00
version.c * (all): Update Copyright year to 2024 2024-01-06 18:06:09 -05:00
vms_exit.c * (all): Update Copyright year to 2024 2024-01-06 18:06:09 -05:00
vms_export_symbol.c * (all): Update Copyright year to 2024 2024-01-06 18:06:09 -05:00
vms_progname.c * (all): Update Copyright year to 2024 2024-01-06 18:06:09 -05:00
vmsdir.h * (all): Update Copyright year to 2024 2024-01-06 18:06:09 -05:00
vmsfunctions.c * (all): Update Copyright year to 2024 2024-01-06 18:06:09 -05:00
vmsify.c * (all): Update Copyright year to 2024 2024-01-06 18:06:09 -05:00
vmsjobs.c * (all): Update Copyright year to 2024 2024-01-06 18:06:09 -05:00
vpath.c * (all): Update Copyright year to 2024 2024-01-06 18:06:09 -05:00
warning.c * (all): Update Copyright year to 2024 2024-01-06 18:06:09 -05:00
warning.h * (all): Update Copyright year to 2024 2024-01-06 18:06:09 -05:00