Update the examples

This commit is contained in:
Jeremie Dimino 2017-05-26 14:43:45 +01:00
parent 4395be09da
commit a1d147022a
9 changed files with 22 additions and 16 deletions

View File

@ -17,6 +17,11 @@ reinstall:
$(MAKE) uninstall $(MAKE) uninstall
$(MAKE) install $(MAKE) install
.PHONY: examples
examples:
jbuilder build @examples
.PHONY: test .PHONY: test
test: test:
jbuilder runtest jbuilder runtest

View File

@ -1,7 +0,0 @@
OC := ocamlbuild -classic-display -no-links -use-ocamlfind
build:
$(OC) -tag thread -pkg threads,utop myutop.top
clean:
$(OC) -clean

View File

@ -0,0 +1,6 @@
(jbuild_version 1)
(executable
((name myutop)
(link_flags (-linkall))
(libraries (utop))))

View File

@ -1 +0,0 @@
Myutop_main

View File

@ -1,7 +0,0 @@
OC := ocamlbuild -classic-display -no-links -use-ocamlfind
build:
$(OC) -pkg threads,compiler-libs.toplevel,utop test_program.byte
clean:
$(OC) -clean

View File

@ -1 +0,0 @@
true: thread, linkall, predicate(create_toploop), warn(-40), bin_annot

6
examples/interact/jbuild Normal file
View File

@ -0,0 +1,6 @@
(jbuild_version 1)
(executable
((name test_program)
(link_flags (-linkall))
(libraries (utop))))

5
jbuild
View File

@ -3,3 +3,8 @@
(install (install
((section share) ((section share)
(files (utoprc-dark utoprc-light)))) (files (utoprc-dark utoprc-light))))
(alias
((name examples)
(deps (examples/custom-utop/myutop.bc
examples/interact/test_program.bc))))