Giter VIP home page Giter VIP logo

ocaml-makefile's People

Contributors

mmottl avatar smimram avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

ocaml-makefile's Issues

ocaml-makefile fails to install with opam v2.0.0

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

Error in descr. of subprojects

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.

Menhir support

Doesn't seem like there is any currently. Would be awesome to have it though.

Can't libinstall when using subprojects

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

How to build and run a testsuite

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?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.