X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=Makefile.in;h=19e9c8c56aabc529a14fdb7c03ba2ab6838a0fb6;hb=5a456c968ee7e7bbe477ae4e756967c4aa2e3fc1;hp=f518c266e91b072c24c8ca9e7ceae37cbe704bf3;hpb=0a41019f02474e4819ecdd739814b849bc58b84e;p=goals.git diff --git a/Makefile.in b/Makefile.in index f518c26..19e9c8c 100644 --- a/Makefile.in +++ b/Makefile.in @@ -18,15 +18,18 @@ # Pass through normal targets to Goalfile.in -# XXX Why can't this parse "all" instead of "all ()"? -all clean depend install: src/goals - ./run src/goals "$@ ()" +all clean depend install check maintainer-clean dist distcheck \ +maintainer-commit maintainer-tag \ +maintainer-check-extra-dist maintainer-release \ +maintainer-srpm maintainer-fedora-copr: src/goals + @./run src/goals $@ 'DESTDIR="$(DESTDIR)"' # 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,18 +37,13 @@ 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/run.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/run.ml src/parser.ml src/lexer.ml \ - src/parse.ml \ - src/main.ml \ + $(OCAMLFIND) opt $(OCAMLFLAGS) $(OCAMLPACKAGES) -I . -I src \ + src/utils-c.c \ + $$($(OCAMLDEP) -sort src/*.mli src/*.ml) \ -linkpkg -o $@ # These rules are required by autoconf.