]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/ocaml/Makefile.common.in
added ocamlinit target which creates a .ocamlinit file
[helm.git] / helm / ocaml / Makefile.common.in
index 1afee22b80cd044bf0b4ce3b204dab3186a06786..bdcc27e86febd70a4a54324399c586c43e54b7ee 100644 (file)
@@ -80,7 +80,13 @@ uninstall:
 backup:
        cd ..; tar cvzf $(PACKAGE)_$(shell date +%s).tar.gz $(PACKAGE)
 
-.PHONY: all opt world backup depend install uninstall clean
+ocamlinit:
+       echo "#use \"topfind\";;" > .ocamlinit
+       echo "#thread;;" >> .ocamlinit
+       for p in $(REQUIRES); do echo "#require \"$$p\";;" >> .ocamlinit; done
+       echo "#load \"$(PACKAGE).cma\";;" >> .ocamlinit
+
+.PHONY: all opt world backup depend install uninstall clean ocamlinit
 
 ifneq ($(MAKECMDGOALS), depend)
    include .depend