Put .module_dep files grade-specific dirs.

compiler/file_names.m:
    Reclassify .module_dep files as being put into grade-specific
    subdirs in the presence of --use-grade-subdirs.

    Document why .err_date files also belong in grade-specific subdirs.

    Document why .prof files do NOT belong in grade-specific subdirs.

    Fix some typos.

compiler/generate_mmakefile_fragments.m:
compiler/make.get_module_dep_info.m:
compiler/make.module_dep_file.m:
compiler/make.program_target.m:
compiler/mercury_compile_main.m:
    Conform to the changes above.
This commit is contained in:
Zoltan Somogyi
2024-08-04 12:41:25 +02:00
parent 96a932107b
commit b296fac67d
5 changed files with 52 additions and 39 deletions

View File

@@ -134,7 +134,7 @@ do_write_module_dep_file(ProgressStream, Globals, BurdenedModule, !IO) :-
BurdenedModule = burdened_module(Baggage, ParseTreeModuleSrc),
ModuleName = ParseTreeModuleSrc ^ ptms_module_name,
module_name_to_file_name_create_dirs(Globals, $pred,
ext_cur_ngs(ext_cur_ngs_misc_module_dep),
ext_cur_ngs_gs(ext_cur_ngs_gs_misc_module_dep),
ModuleName, ProgDepFile, !IO),
io.open_output(ProgDepFile, ProgDepResult, !IO),
(