[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

2.5.3 Generic support for generated files

If you need to generate source files in a way not directly supported by Mosmake, go right ahead and add rules that describe how, to your `Makefile'. Then make will combine them the Mosmake's rules about how to use the files.

If you autogenerate `.sig' or `-sig.sml' files, there is a risk that the autogenerated files will not be present when Mosmake looks for them to decide which separate-compilation model the unit uses (see section 2.2.5 How Mosmake finds out which model you use). You can instruct Mosmake to expect the autogenerated files nevertheless, by adding a %DOTSIG and/or %DASHSIG flag to the unit's `Dependencies' line.

There are also complementary %NODOTSIG and %NODASHSIG flags. %NODASHSIG can be useful if you want do treat `foo-sig' as a separate unit with its own `Dependencies' line. %NODOTSIG is less useful -- even if you convince Mosmake that `foo.sig' does not exist, mosmlc is going to look for it and complain if it finds it and it has not been compiled.


[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

This document was generated by Henning Makholm on November, 19 2002 using texi2html