ligo/Makefile

64 lines
1.7 KiB
Makefile
Raw Normal View History

DEV ?= --dev
2018-02-05 23:08:28 +04:00
PACKAGES:=$(patsubst %.opam,%,$(notdir $(shell find -name *.opam)))
all:
@jbuilder build ${DEV} \
src/bin_node/main.exe \
src/bin_client/main.exe \
src/bin_client/admin_main.exe \
2018-01-30 19:30:22 +04:00
src/lib_protocol_compiler/main_native.exe
@cp _build/default/src/bin_node/main.exe tezos-node
@cp _build/default/src/bin_client/main.exe tezos-client
@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
2018-02-05 23:08:28 +04:00
all.pkg:
@jbuilder build ${DEV} \
$(patsubst %.opam,%.install, $(shell find -name \*.opam))
$(addsuffix .pkg,${PACKAGES}): %.pkg:
@jbuilder build ${DEV} \
$(patsubst %.opam,%.install, $(shell find -name $*.opam))
$(addsuffix .test,${PACKAGES}): %.test:
@jbuilder build ${DEV} \
@$(patsubst %/$*.opam,%,$(shell find -name $*.opam))/runtest
doc-html: all
@jbuilder build @doc ${DEV}
@./tezos-client -protocol ProtoALphaALph man -verbosity 3 -format html | sed "s/$HOME/\$HOME/g" > docs/api/tezos-client.html
@./tezos-admin-client man -verbosity 3 -format html | sed "s/$HOME/\$HOME/g" > docs/api/tezos-admin-client.html
@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
build-test:
@jbuilder build @buildtest ${DEV}
test:
@jbuilder runtest ${DEV}
2018-01-29 04:26:41 +04:00
@./scripts/check_opam_test.sh
2018-01-27 14:21:41 +04:00
test-indent:
@jbuilder build @runtest_indent ${DEV}
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
clean:
@-jbuilder clean
@-rm -f tezos-node tezos-client tezos-protocol-compiler
@-make -C docs clean
.PHONY: all test build-deps docker-image clean