X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=Makefile.in;h=74fc7de3c0e83cb86714e42012b26a3399dcf17c;hb=d2a50cddaf47e1b83757f679eaea8c995ab5a462;hp=f4f176dd6343f3a4cd1b5a964bd9531097476404;hpb=9a22a94c4202a63947e7bcf47c41fde75157c9cd;p=goals.git diff --git a/Makefile.in b/Makefile.in index f4f176d..74fc7de 100644 --- a/Makefile.in +++ b/Makefile.in @@ -19,14 +19,15 @@ # Pass through normal targets to Goalfile.in # XXX Why can't this parse "all" instead of "all ()"? -all clean install: src/goals - ./run src/goals -d "$@ ()" +all clean depend install: src/goals + ./run src/goals "$@ ()" # If src/goals doesn't exist then brute-force build it. Once we have # src/goals we can rebuild it and other parts of the project using # goals itself (see Goalfile.in). MENHIR = @MENHIR@ +OCAMLDEP = @OCAMLDEP@ OCAMLFIND = @OCAMLFIND@ OCAMLLEX = @OCAMLLEX@ OCAMLFLAGS = @OCAMLFLAGS@ @@ -34,16 +35,12 @@ OCAMLPACKAGES = @OCAMLPACKAGES@ src/goals: $(MENHIR) --explain src/parser.mly -# Hack required to get includes working. - echo 'val lexer_read : (Lexing.lexbuf -> token) option ref' \ - >> src/parser.mli +# Hack required to break circular dependencies. + echo 'val lexer_read : (Lexing.lexbuf -> token) option ref' >> src/parser.mli + echo 'val eval_substitute : (Ast.env -> Ast.loc -> Ast.substs -> string) option ref' >> src/parser.mli $(OCAMLLEX) src/lexer.mll $(OCAMLFIND) opt $(OCAMLFLAGS) $(OCAMLPACKAGES) -I src \ - src/config.mli src/utils.mli src/cmdline.mli src/ast.mli \ - src/eval.mli src/parser.mli src/lexer.mli src/parse.mli \ - src/config.ml src/utils.ml src/cmdline.ml src/ast.ml \ - src/eval.ml src/parser.ml src/lexer.ml src/parse.ml \ - src/main.ml \ + $$($(OCAMLDEP) -sort src/*.mli src/*.ml) \ -linkpkg -o $@ # These rules are required by autoconf.