dune/Makefile

31 lines
577 B
Makefile
Raw Normal View History

2017-02-27 12:06:59 +00:00
INSTALL_ARGS := $(if $(PREFIX),--prefix $(PREFIX),)
BIN := ./_build/default/bin/main.exe
2016-12-02 13:54:32 +00:00
default: boot.exe
./boot.exe -j 4 --dev
boot.exe: bootstrap.ml
ocaml bootstrap.ml
2016-12-02 13:54:32 +00:00
install:
2017-02-27 12:06:59 +00:00
$(BIN) install $(INSTALL_ARGS)
2016-12-02 13:54:32 +00:00
uninstall:
2017-02-27 12:06:59 +00:00
$(BIN) uninstall $(INSTALL_ARGS)
2016-12-02 13:54:32 +00:00
reinstall: uninstall reinstall
test:
$(BIN) runtest
2017-02-27 15:04:49 +00:00
all-supported-ocaml-versions:
$(BIN) build @install @runtest --workspace jbuild-workspace.dev --root .
2017-02-27 15:04:49 +00:00
2016-12-02 13:54:32 +00:00
clean:
rm -rf _build
2016-12-02 13:54:32 +00:00
2017-05-18 18:05:01 +00:00
extract-makefile:
$(BIN) extract-makefile -o Makefile.extracted @install
.PHONY: default install uninstall reinstall clean test