Build a package with make $ . ./helpers.sh $ mkdir foo $ cat >foo/Makefile < .DEFAULT: foo > .PHONY: foo > foo: ; @echo running makefile > EOF $ make_lockdir $ cat >dune.lock/foo.pkg < (version 0.0.1) > (build (run %{make})) > (source (copy $PWD/foo)) > EOF $ build_pkg foo running makefile