This commit is contained in:
swrup 2025-11-11 02:07:51 +01:00
parent aa2ff7b2f0
commit 2f3113f55d
11742 changed files with 1223940 additions and 0 deletions

View file

@ -0,0 +1,31 @@
(library
(name foo)
(public_name foo)
(modules foo))
(library
(name bar)
(public_name bar)
(libraries foo)
(modules bar))
(rule
(with-stdout-to foo.ml
(echo "let x = 42")))
(rule
(with-stdout-to bar.ml
(echo "let x = string_of_int Foo.x")))
(rule
(with-stdout-to test.ml
(echo "let () = Printf.printf \"%d %s\" Foo.x Bar.x")))
(rule
(deps test.ml (package bar))
(targets test.exe)
(action (run ocamlfind ocamlc -linkpkg -package bar -o test.exe test.ml)))
(alias
(name runtest)
(action (run ./test.exe)))