Doc: Remove dune flag from Makefile (now it is the default)

This commit is contained in:
Pietro 2018-07-24 15:17:26 +02:00 committed by Grégoire Henry
parent b89682e441
commit 56209e7695

View File

@ -9,8 +9,6 @@ DOCGENDIR = doc_gen
DOCERRORDIR = $(DOCGENDIR)/errors DOCERRORDIR = $(DOCGENDIR)/errors
DOCRPCDIR = $(DOCGENDIR)/rpcs DOCRPCDIR = $(DOCGENDIR)/rpcs
DEV ?= --dev
all: html linkcheck all: html linkcheck
linkcheck: linkcheck:
@ -20,17 +18,17 @@ introduction/readme.rst: ../README.rst
sed 's/TEZOS/How to build and run/' $< > $@ sed 's/TEZOS/How to build and run/' $< > $@
api/errors.rst: $(DOCERRORDIR)/error_doc.ml api/errors.rst: $(DOCERRORDIR)/error_doc.ml
@cd .. && dune build ${DEV} docs/$(DOCERRORDIR)/error_doc.exe @cd .. && dune build docs/$(DOCERRORDIR)/error_doc.exe
../_build/default/docs/$(DOCERRORDIR)/error_doc.exe > api/errors.rst ../_build/default/docs/$(DOCERRORDIR)/error_doc.exe > api/errors.rst
$(DOCGENDIR)/rpc_doc.exe: $(DOCGENDIR)/rpc_doc.exe:
@cd .. && dune build ${DEV} docs/$(DOCGENDIR)/rpc_doc.exe @cd .. && dune build docs/$(DOCGENDIR)/rpc_doc.exe
api/rpc.rst: $(DOCGENDIR)/rpc_doc.exe api/rpc_usage.rst.inc api/rpc.rst: $(DOCGENDIR)/rpc_doc.exe api/rpc_usage.rst.inc
@dune exec $(DOCGENDIR)/rpc_doc.exe < api/rpc_usage.rst.inc > api/rpc.rst @dune exec $(DOCGENDIR)/rpc_doc.exe < api/rpc_usage.rst.inc > api/rpc.rst
$(DOCGENDIR)/p2p_doc.exe: $(DOCGENDIR)/p2p_doc.exe:
@cd .. && dune build ${DEV} docs/$(DOCGENDIR)/p2p_doc.exe @cd .. && dune build docs/$(DOCGENDIR)/p2p_doc.exe
api/p2p.rst: $(DOCGENDIR)/p2p_doc.exe api/p2p_usage.rst.inc api/p2p.rst: $(DOCGENDIR)/p2p_doc.exe api/p2p_usage.rst.inc
@dune exec $(DOCGENDIR)/p2p_doc.exe < api/p2p_usage.rst.inc > api/p2p.rst @dune exec $(DOCGENDIR)/p2p_doc.exe < api/p2p_usage.rst.inc > api/p2p.rst