Fix source distribution builds.

browser/Mmakefile:
compiler/Mmakefile:
     Restore the .PHONY directives on the Mercury.modules target as their
     absence is causing the source distribution builds to fail.

     Add an XXX comment about this.
This commit is contained in:
Julien Fischer
2020-01-12 23:55:37 +11:00
parent a618ab31e1
commit fd705bcf2d
2 changed files with 6 additions and 0 deletions

View File

@@ -166,6 +166,9 @@ depend_aux: browse_test.depend declarative_test.depend
# This directory contains source files for which the module name
# does not match the file name, so smart recompilation won't work
# without the Mercury.modules file.
# XXX this .PHONY directive is required when building the source
# distribution -- why?
.PHONY: Mercury.modules
Mercury.modules: MDB_FLAGS
$(MC) $(ALL_GRADEFLAGS) $(ALL_MCFLAGS) -f *.m

View File

@@ -93,6 +93,9 @@ $(MC_PROG).depend: Mercury.modules COMP_FLAGS
# 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.
# XXX this .PHONY directive is required when building the source
# distribution -- why?
.PHONY: Mercury.modules
Mercury.modules: COMP_FLAGS
$(MC) $(ALL_GRADEFLAGS) $(ALL_MCFLAGS) -f *.m