Commits

camlspotter committed b5d5caf

parser fix

Comments (0)

Files changed (2)

-.PHONY: all install clean
+.PHONY: all clean
 
 OCAMLPACKAGEFLAGS=
 
 
 .PHONY: test test2
 
-test: parser
-    $(shell bash -c 'for i in test*.ml test*.mli; do ./parser $$i; done') 
+if $(file-exists ocaml/VERSION)
+  test: parser
+      $(shell bash -c 'for i in test*.ml test*.mli; do ./parser $$i; done') 
 
-test2: parser
-    $(shell bash -c 'for i in test*.ml test*.mli; do ./lexertest $$i; done') 
+  test2: parser
+      $(shell bash -c 'for i in test*.ml test*.mli; do ./lexertest $$i; done') 
 
-diff.txt: plparser.auto.ml
-    diff -c plparser.auto.ml plparser.ml  > diff.txt
+  diff.txt: plparser.auto.ml
+      diff -c plparser.auto.ml plparser.ml  > diff.txt
+  export
 %.cmx %.cmxa : ../lib/planck.cmx ../lib/planck.cmo
 
 Test(name) = 
-   MyOCamlExec($(name), $(name)) # No install
+   MyOCamlProgram($(name), $(name)) # No install
    export
 
 Test(expr)