From fd705bcf2d9d9a3096fea88f5a14e5f82aef8f2f Mon Sep 17 00:00:00 2001 From: Julien Fischer Date: Sun, 12 Jan 2020 23:55:37 +1100 Subject: [PATCH] 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. --- browser/Mmakefile | 3 +++ compiler/Mmakefile | 3 +++ 2 files changed, 6 insertions(+) diff --git a/browser/Mmakefile b/browser/Mmakefile index 4de054180..3acab9240 100644 --- a/browser/Mmakefile +++ b/browser/Mmakefile @@ -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 diff --git a/compiler/Mmakefile b/compiler/Mmakefile index 8461b94f0..fda76ef5a 100644 --- a/compiler/Mmakefile +++ b/compiler/Mmakefile @@ -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