[m-rev.] diff: make --smart-recompilation work with the compiler

Simon Taylor stayl at cs.mu.OZ.AU
Mon Jun 10 19:03:37 AEST 2002


On 10-Jun-2002, Fergus Henderson <fjh at cs.mu.OZ.AU> wrote:
> On 10-Jun-2002, Simon Taylor <stayl at cs.mu.OZ.AU> wrote:
> > 
> > compiler/Mmakefile:
> > browser/Mmakefile:
> > 	Generate the Mercury.modules file.
> 
> It would be helpful to put a comment in those files explaining
> why the Mercury.modules file was needed.

--- browser/Mmakefile	2002/06/10 08:19:08	1.1
+++ browser/Mmakefile	2002/06/10 09:01:22
@@ -76,6 +76,9 @@
 depend		: Mercury.modules $(BROWSER_LIB_NAME).depend \
 			browse_test.depend declarative_test.depend
 
+# This directory contains source files for which the module
+# name doesn't match the file name, so smart recompilation
+# won't work without the Mercury.modules file.
 .PHONY: Mercury.modules
 Mercury.modules:
 	$(MC) -f *.m
--- compiler/Mmakefile	2002/06/10 09:00:52	1.1
+++ compiler/Mmakefile	2002/06/10 09:01:25
@@ -166,6 +166,9 @@
 
 $(MC_PROG).depend: regenerate_preprocessed_files Mercury.modules
 
+# This directory contains source files for which the module
+# name doesn't match the file name, so smart recompilation
+# won't work without the Mercury.modules file.
 .PHONY: Mercury.modules
 Mercury.modules:
 	$(MC) -f *.m

--------------------------------------------------------------------------
mercury-reviews mailing list
post:  mercury-reviews at cs.mu.oz.au
administrative address: owner-mercury-reviews at cs.mu.oz.au
unsubscribe: Address: mercury-reviews-request at cs.mu.oz.au Message: unsubscribe
subscribe:   Address: mercury-reviews-request at cs.mu.oz.au Message: subscribe
--------------------------------------------------------------------------



More information about the reviews mailing list