Files
mercury/compiler/make.m
Zoltan Somogyi 2730c2b802 Rename three modules in the make package.
compiler/make.prereqs.m:
compiler/make.prereqs_cache.m:
compiler/make.index_set.m:
    Rename make.dependencies.m to make.prereqs.m;
    rename make.deps_cache.m to make.prereqs_cache.m; and
    rename make.deps_set.m to make.index_set.m.

    We have several kinds of dependencies in the Mercury system;
    the renames make clear that these modules deal with prerequisites
    of make targets. The reason why the word "prereq" is not part of the
    new name of the third module is that this module's functionality is
    generic; it does not care whether the modules and files it deals with
    (representing them as index values in sets) are prerequisites or not.

compiler/make.m:
compiler/notes/compiler_design.html:
    Rename the above modules.

compiler/make.find_local_modules.m:
compiler/make.make_info.m:
compiler/make.module_target.m:
compiler/make.top_level.m:
compiler/mercury_compile_main.m:
    Conform to the changes above.

An unrelated change that ought to have been committed separately
but is now too hard to disentangle from the change above:

Stop creating .err.tmp files.

compiler/make.build.m:
    When we start to build a module target, always direct diagnostic
    outout to the module's .err file. Do this whether the module
    has a .err file already or not, since we want to overwrite any
    existing .err file anyway.

    Simplify the interface of the affected predicates by deleting
    arguments that are no longer needed.

compiler/make.make_info.m:
    Stop keeping track of which modules have had .err files
    created for them already, since we no longer need this info.

compiler/make.get_module_dep_info.m:
compiler/make.module_target.m:
compiler/make.program_target.m:
    Conform to the changed argument lists in make.build.m.

    Give a predicate a more descriptive name.
2025-09-17 14:32:53 +10:00

50 lines
1.7 KiB
Mathematica

%---------------------------------------------------------------------------%
% vim: ft=mercury ts=4 sw=4 et
%---------------------------------------------------------------------------%
% Copyright (C) 2002-2012 The University of Melbourne.
% Copyright (C) 2013-2017, 2019-2025 The Mercury team.
% This file may only be copied under the terms of the GNU General
% Public License - see the file COPYING in the Mercury distribution.
%---------------------------------------------------------------------------%
%
% File: make.m.
% Main author: stayl.
%
% A package for "mmc --make", a builtin Mercury-specific make replacement.
%
%---------------------------------------------------------------------------%
:- module make.
:- interface.
:- include_module build.
:- include_module get_module_dep_info.
:- include_module module_dep_file.
:- include_module options_file.
:- include_module prereqs_cache.
:- include_module top_level.
%---------------------------------------------------------------------------%
%---------------------------------------------------------------------------%
:- implementation.
:- include_module check_up_to_date.
:- include_module clean.
:- include_module file_names.
:- include_module find_local_modules.
:- include_module hash.
:- include_module index_set.
:- include_module library_install.
:- include_module make_info.
:- include_module module_target.
:- include_module prereqs.
:- include_module program_target.
:- include_module timestamp.
:- include_module track_flags.
:- include_module util.
%---------------------------------------------------------------------------%
:- end_module make.
%---------------------------------------------------------------------------%