[MLton-commit] r7418
Wesley Terpstra
wesley at mlton.org
Mon Feb 15 08:50:51 PST 2010
Another multiple target bug.
Fortunately, in this case we can replace the rules with a pattern rule.
%.sig %.grm: %.
----------------------------------------------------------------------
U mlton/trunk/mlton/front-end/Makefile
----------------------------------------------------------------------
Modified: mlton/trunk/mlton/front-end/Makefile
===================================================================
--- mlton/trunk/mlton/front-end/Makefile 2010-02-15 16:40:30 UTC (rev 7417)
+++ mlton/trunk/mlton/front-end/Makefile 2010-02-15 16:50:51 UTC (rev 7418)
@@ -39,22 +39,12 @@
clean:
../../bin/clean
-ml.lex.sml: ml.lex
- rm -f ml.lex.sml
- $(MLLEX) ml.lex
- chmod -w ml.lex.sml
+%.lex.sml: %.lex
+ rm -f $@
+ $(MLLEX) $<
+ chmod -w $@
-ml.grm.sig ml.grm.sml: ml.grm
- rm -f ml.grm.*
- $(MLYACC) ml.grm
- chmod -w ml.grm.*
-
-mlb.lex.sml: mlb.lex
- rm -f mlb.lex.sml
- $(MLLEX) mlb.lex
- chmod -w mlb.lex.sml
-
-mlb.grm.sig mlb.grm.sml: mlb.grm
- rm -f mlb.grm.*
- $(MLYACC) mlb.grm
- chmod -w mlb.grm.*
+%.grm.sig %.grm.sml: %.grm
+ rm -f $<.*
+ $(MLYACC) $<
+ chmod -w $<.*
More information about the MLton-commit
mailing list