1 ## Copyright (C) 2009,2014-2015 Matthew Fluet.
2 # Copyright (C) 1999-2006 Henry Cejtin, Matthew Fluet, Suresh
3 # Jagannathan, and Stephen Weeks.
4 # Copyright (C) 1997-2000 NEC Research Institute.
6 # MLton is released under a BSD-style license.
7 # See the file MLton-LICENSE for details.
12 ######################################################################
13 ######################################################################
15 SRC
:= $(shell cd ..
/..
&& pwd
)
19 PATH
:= $(BIN
):$(shell echo
$$PATH)
21 ######################################################################
24 all: ml.
lex.sml ml.grm.sig ml.grm.sml mlb.
lex.sml mlb.grm.sig mlb.grm.sml
31 ifeq (mllex
, $(shell if mllex
>/dev
/null
2>&1 ||
[ $$?
!= 127 ] ; then echo mllex
; fi
))
34 ifeq (ml-lex
, $(shell if ml-lex
>/dev
/null
2>&1 ||
[ $$?
!= 127 ] ; then echo ml-lex
; fi
))
45 $(SED
) -e
's/val s = List.map f (List.rev (tl (List.rev s)))/val s = Pervasive.List.map f (Pervasive.List.rev (tl (Pervasive.List.rev s)))/' $<.sml.in
> $<.sml
47 $(SED
) -e
's/in Vector.fromList(List.map g/in Vector.fromList(Pervasive.List.map g/' $<.sml.in
> $<.sml
52 ifeq (mlyacc
, $(shell if mlyacc
>/dev
/null
2>&1 ||
[ $$?
!= 127 ] ; then echo mlyacc
; fi
))
55 ifeq (ml-yacc
, $(shell if ml-lex
>/dev
/null
2>&1 ||
[ $$?
!= 127 ] ; then echo ml-yacc
; fi
))
62 %.grm.sig
%.grm.sml
: %.grm
66 $(SED
) -e
's/in f 0 handle General.Subscript => ()/in f 0 handle Pervasive.General.Subscript => ()/' $<.sml.in
> $<.sml
68 $(SED
) -e
's/in Array.fromList(List.map actionRowLookUp actionRowNumbers)/in Array.fromList(Pervasive.List.map actionRowLookUp actionRowNumbers)/' $<.sml.in
> $<.sml