2017-10-27 22:45:31 +04:00
|
|
|
|
2017-11-14 02:47:13 +04:00
|
|
|
DEV ?= --dev
|
|
|
|
|
2017-10-27 22:45:31 +04:00
|
|
|
all:
|
2017-11-27 09:13:12 +04:00
|
|
|
@jbuilder build ${DEV} \
|
2018-01-16 19:30:58 +04:00
|
|
|
src/bin_node/main.exe \
|
|
|
|
src/bin_client/main.exe \
|
2018-01-16 07:10:20 +04:00
|
|
|
src/bin_client/admin_main.exe \
|
2018-01-30 19:30:22 +04:00
|
|
|
src/lib_protocol_compiler/main_native.exe
|
2018-01-16 19:30:58 +04:00
|
|
|
@cp _build/default/src/bin_node/main.exe tezos-node
|
|
|
|
@cp _build/default/src/bin_client/main.exe tezos-client
|
2018-01-16 07:10:20 +04:00
|
|
|
@cp _build/default/src/bin_client/admin_main.exe tezos-admin-client
|
2018-01-30 19:30:22 +04:00
|
|
|
@cp _build/default/src/lib_protocol_compiler/main_native.exe tezos-protocol-compiler
|
2017-10-27 22:45:31 +04:00
|
|
|
|
2018-01-30 19:30:22 +04:00
|
|
|
tezos-%.pkg:
|
2018-01-29 04:06:47 +04:00
|
|
|
@jbuilder build --dev $(patsubst %.opam,%.install, \
|
|
|
|
$(shell find -name tezos-$*.opam))
|
|
|
|
|
2017-11-03 19:02:38 +04:00
|
|
|
doc-html:
|
2017-11-14 02:47:13 +04:00
|
|
|
@jbuilder build @doc ${DEV}
|
2017-11-11 14:40:20 +04:00
|
|
|
@mkdir -p $$(pwd)/docs/_build/api/odoc
|
|
|
|
@rm -rf $$(pwd)/docs/_build/api/odoc/*
|
|
|
|
@cp -r $$(pwd)/_build/default/_doc/* $$(pwd)/docs/_build/api/odoc/
|
|
|
|
@make -C docs
|
2017-11-03 19:02:38 +04:00
|
|
|
|
2017-10-27 22:45:31 +04:00
|
|
|
build-test:
|
2017-11-14 02:47:13 +04:00
|
|
|
@jbuilder build @buildtest ${DEV}
|
2017-10-27 22:45:31 +04:00
|
|
|
|
|
|
|
test:
|
2017-11-14 02:47:13 +04:00
|
|
|
@jbuilder runtest ${DEV}
|
2018-01-29 04:26:41 +04:00
|
|
|
@./scripts/check_opam_test.sh
|
2017-10-27 22:45:31 +04:00
|
|
|
|
2018-01-27 14:21:41 +04:00
|
|
|
test-indent:
|
|
|
|
@jbuilder build @runtest_indent ${DEV}
|
|
|
|
|
2017-10-27 22:45:31 +04:00
|
|
|
build-deps:
|
|
|
|
@./scripts/install_build_deps.sh
|
|
|
|
|
|
|
|
docker-image:
|
|
|
|
@./scripts/create_docker_image.sh
|
|
|
|
|
2018-01-26 19:28:13 +04:00
|
|
|
install:
|
|
|
|
@jbuilder build @install
|
|
|
|
@jbuilder install
|
|
|
|
|
2017-10-27 22:45:31 +04:00
|
|
|
clean:
|
|
|
|
@-jbuilder clean
|
|
|
|
@-rm -f tezos-node tezos-client tezos-protocol-compiler
|
2017-11-11 14:40:20 +04:00
|
|
|
@-make -C docs clean
|
2017-10-27 22:45:31 +04:00
|
|
|
|
|
|
|
.PHONY: all test build-deps docker-image clean
|
2018-01-29 04:06:47 +04:00
|
|
|
|