mmottl / ocaml-makefile Goto Github PK
View Code? Open in Web Editor NEWEasy to use Makefile for small to medium-sized OCaml-projects
License: Other
Easy to use Makefile for small to medium-sized OCaml-projects
License: Other
Could this be due to the new sandboxing?
The following actions will be performed:
∗ install ocaml-makefile 6.39.0
<><> Gathering sources ><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
[ocaml-makefile.6.39.0] found in cache
<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
[ERROR] The compilation of ocaml-makefile failed at "/usr/app/lib/opam/opam-init/hooks/sandbox.sh build mkdir -p
/usr/app/lib/opam/4.06.1/lib/ocaml-makefile".
#=== ERROR while compiling ocaml-makefile.6.39.0 ==============================#
# context 2.0.0 | linux/x86_64 | ocaml-base-compiler.4.06.1 | https://opam.ocaml.org#4c442d5b
# path /usr/app/lib/opam/4.06.1/.opam-switch/build/ocaml-makefile.6.39.0
# command /usr/app/lib/opam/opam-init/hooks/sandbox.sh build mkdir -p /usr/app/lib/opam/4.06.1/lib/ocaml-makefile
# exit-code 1
# env-file /usr/app/lib/opam/log/ocaml-makefile-14301-05296d.env
# output-file /usr/app/lib/opam/log/ocaml-makefile-14301-05296d.out
### output ###
# mkdir: cannot create directory ‘/usr/app/lib/opam/4.06.1/lib/ocaml-makefile’: Read-only file system
<><> Error report <><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
┌─ The following actions failed
│ λ build ocaml-makefile 6.39.0
└─
╶─ No changes have been performed
Handling subprojects:
define PROJ_p1
SOURCES="foo.ml main.ml"
RESULT="p1"
OCAMLFLAGS="-unsafe"
endef
export PROJ_p1
Does NOT work.
Problematic line:
SOURCES="foo.ml main.ml"
should be:
SOURCES=foo.ml main.ml
Without '"' it does work.
make clean
doesn't clean up some of the files it generated, specifically *.cmi
and *.cmo
files.
Doesn't seem like there is any currently. Would be awesome to have it though.
Would be great to be able to create these new packs with -no-alias-deps
:
Hello,
At example: https://github.com/mmottl/ocaml-makefile/tree/master/threads
When changing the default target to be:
# Default target to use
all: bcl
And invoking: "libinstall", get the following "No rule to make target 'all', needed by 'libinstall":
$ make libinstall
make[1]: Entering directory '/home/threads'
make[2]: Entering directory '/home/threads'
make[2]: *** No rule to make target 'all', needed by 'libinstall'. Stop.
make[2]: Leaving directory '/home/threads'
make[1]: *** [OCamlMakefile:1227: subproj_ex1] Error 2
make[1]: Leaving directory '/home/threads'
make: *** [Makefile:32: libinstall] Error 2
I'm interested in using OCamlMakefile
for a small project, but I'm wondering how to integrate my testsuite with it. I'm envisioning the following directory structure:
src/*.ml[ly]
test/*.ml
I would like to be able to write a Makefile like the following:
SOURCES = <everything in src>
TESTS = <everything in test>
include OCamlMakefile
I would then like to be able to run the following commands:
$ make # only build binaries
$ make test # build and run test files
Any suggestions for how to write a test
target? Or any interest in supporting these features in OCamlMakefile
itself?
See ocaml/opam#2103
I don't have a clear idea what's going wrong, not sure OCamlMakefile is in cause, but any help would be appreciated!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.