]> matita.cs.unibo.it Git - fireball-separation.git/blobdiff - ocaml/Makefile
clean removes *.o files
[fireball-separation.git] / ocaml / Makefile
index b4b12e06da3fc9e398bc7e4c9c4e8e001c75ba63..b44d9c51460cc62e1f8c130c185c59d5d2a12c01 100644 (file)
@@ -5,6 +5,11 @@ UTILS = parser.cmx console.cmx listx.cmx util.cmx pure.cmx num.cmx
 all: a.out test4.out
        # test.out
 
+run: FORCE test4.out
+       bash run
+
+FORCE:
+
 a.out: $(UTILS) lambda4.cmx problems.cmx
        $(OCAMLC) -o a.out $(LIB) $^
 
@@ -21,11 +26,11 @@ test4.out: $(UTILS) lambda4.cmx test.ml
        $(OCAMLC) -c $<
 
 clean:
-       rm -f *.cm* *.out .depend log
+       rm -f *.cm* *.out *.o .depend log
 
 .depend: *.ml *.mli
        ocamldep *.ml *.mli > .depend
 
 include .depend
 
-.PHONY: clean all
+.PHONY: clean all run