Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Makefile: improve confusing errors in inclusion #492

Merged
merged 1 commit into from
Oct 14, 2024

Commits on Oct 14, 2024

  1. Makefile: improve confusing errors in inclusion

    This line gives some bad errors whenever ocamlfind is not in the
    PATH or the visitors package is not installed, and may carry on
    with the Makefile regardless of that failure (attempting to include
    /Makefile.preprocess along the way).
    
    	$ make
    	make: ocamlfind: No such file or directory
    	Makefile:2: /Makefile.preprocess: No such file or directory
    	make: *** No rule to make target '/Makefile.preprocess'.  Stop.
    
    This patch makes the Makefile provide more helpful errors in both these
    situations:
    
    	$ make
    	make: ocamlfind: No such file or directory
    	Makefile:7: *** "'ocamlfind query' failed, please install OCaml and put it in your PATH.  Stop.
    
    	$ make
    	ocamlfind: Package `visitors' not found
    	Makefile:11: *** "'ocamlfind query visitors' failed, please 'opam install visitors'.  Stop.
    mtzguido committed Oct 14, 2024
    Configuration menu
    Copy the full SHA
    4ddfdb9 View commit details
    Browse the repository at this point in the history