[m-rev.] for review: restore old behaviour of .cs target

Julien Fischer juliensf at csse.unimelb.edu.au
Tue Sep 21 16:45:33 AEST 2010


On Tue, 21 Sep 2010, Peter Wang wrote:

> Branches: main
>
> `.cs' targets were formerly used to tell `mmake' and `mmc --make' to generate
> all the C files for a given target.  However, `.cs' is also the file name
> extension for C# source files.  The recent addition of the C# backend
> inadvertently changed the behaviour for `mmc --make'.
>
> This patch restores `mmc --make's old interpretation of the `.cs' extension,
> but adds new targets `.all_<ext>s' for both `mmake' and `mmc --make'.
> The plan is to migrate to the latter syntax.
>
> compiler/make.m:
> compiler/make.util.m:
>         Restore old behaviour for `.cs'.
>
>         Accept `.all_<ext>s' syntax.
>
>         Accept `.csharp' and `.all_csharps' as targets to generate C# files.
>         This is only temporary.
>
> compiler/file_names.m:
>         The new `.all_<ext>s' mmake targets need to go in the current directory
>         (not that the files actually exist).
>
> compiler/write_deps_file.m:
>         Write out `.all_<ext>s' rules in `.dep' files.
>
> doc/user_guide.texi:
>         Replace an instance of `.ints' in the documentation with `.all_ints'.
>
>         Delete documentation of `.javas', `.classes', `.ils', `.erls', and
>         `.beams' targets in the documentation.  `.cs', `.opts' and other
>         targets are not documented either.  As far as I can tell, they are
>         really designed to be used by bootcheck.
>

That loooks fine.

Julien.
--------------------------------------------------------------------------
mercury-reviews mailing list
Post messages to:       mercury-reviews at csse.unimelb.edu.au
Administrative Queries: owner-mercury-reviews at csse.unimelb.edu.au
Subscriptions:          mercury-reviews-request at csse.unimelb.edu.au
--------------------------------------------------------------------------



More information about the reviews mailing list