eliom
eliom copied to clipboard
Makefile (+) has some warts
Hello -
I've just started using eliom and have stumpled upon the following problems several times before making a wrapper-script:
- when running
make test.byte- old compiled object files seem not to be updated once in a while if making small changes to sources (will try to find an example if you are interested) - the {..}.type_mli files are not generated automatically (at least not when there is some syntax/type error that get catched at the 'infer' stage). This leads
make test.byteto fail with the error that the file is missing instead of the specific syntax/type error. This is not so nice for beginners to eliom I think - who probabley will use the eliom-distillery as a starting point (would love an ocamlbuild-template instead as written about in #92 ). When trying out the different compilation-methods I think this error also happened while following the manual on compiling with "eliomc and js_of_eliom" from http://ocsigen.org/eliom/5.0/manual/workflow-compilation .- (a half-related note) I couldn't get the ocamlbuild part of the manual to work when I tried to follow the section from the previous link.
- subfolders in "_deps" are not created automatically (e.g. "src" and "experiments" for me)
Script that avoids the two first errors:
#! /bin/bash
set -e
make clean
eliomc -ppx -package lwt.ppx -infer src/*.eliom experiments/*.eliom
make test.byte
Thanks for working on a cool project!
Thanks for bringing this up. The build system has its issues, especially when it comes to bytecode. I am not promising immediate fixes (it is a matter of prioritizing tasks), but we will keep this in mind :).