--- mercury-compiler-0.13.1.orig/scripts/Mmake.rules 2006-11-03 18:42:28.000000000 +1300 +++ mercury-compiler-0.13.1/scripts/Mmake.rules 2006-12-04 21:35:40.000000000 +1300 @@ -505,9 +505,9 @@ *.a *.so tmp_dir || true; } && \ for grade in $(ALL_LIBGRADES); do \ if [ "$$grade" != "$(GRADE)" ]; then \ - $(MMAKE) GRADE=$$grade $*.depend || \ + $(MMAKE) $(MMAKEFLAGS) GRADE=$$grade $*.depend || \ exit 1; \ - $(MMAKE) GRADE=$$grade lib$*.install_library || \ + $(MMAKE) $(MMAKEFLAGS) GRADE=$$grade lib$*.install_library || \ exit 1; \ for file in x $$grade_files; do \ if [ "$$file" != "x" ]; then \