aboutsummaryrefslogtreecommitdiffstats
path: root/lib/tools/doc/src/Makefile
diff options
context:
space:
mode:
authorJohn Högberg <[email protected]>2018-04-13 17:14:52 +0200
committerJohn Högberg <[email protected]>2018-04-16 15:44:56 +0200
commitd969e5dce796a7d73975785dc1a1c421e09c2583 (patch)
treef9655b5b041d8f727cbd35b8fd5eb1455e5cbfd2 /lib/tools/doc/src/Makefile
parenta7e0369000282c22e784a769b0e41598df1682e9 (diff)
downloadotp-d969e5dce796a7d73975785dc1a1c421e09c2583.tar.gz
otp-d969e5dce796a7d73975785dc1a1c421e09c2583.tar.bz2
otp-d969e5dce796a7d73975785dc1a1c421e09c2583.zip
tools: Generate typespecs in doc build
Diffstat (limited to 'lib/tools/doc/src/Makefile')
-rw-r--r--lib/tools/doc/src/Makefile14
1 files changed, 14 insertions, 0 deletions
diff --git a/lib/tools/doc/src/Makefile b/lib/tools/doc/src/Makefile
index b554781382..4b663106a0 100644
--- a/lib/tools/doc/src/Makefile
+++ b/lib/tools/doc/src/Makefile
@@ -84,11 +84,20 @@ HTML_REF_MAN_FILE = $(HTMLDIR)/index.html
TOP_PDF_FILE = $(PDFDIR)/$(APPLICATION)-$(VSN).pdf
+SPECS_FILES = $(XML_REF3_FILES:%.xml=$(SPECDIR)/specs_%.xml)
+
+TOP_SPECS_FILE = specs.xml
+
# ----------------------------------------------------
# FLAGS
# ----------------------------------------------------
XML_FLAGS +=
+TOOLS_SRC=$(ERL_TOP)/lib/tools/src
+TOOLS_INCLUDE=$(ERL_TOP)/lib/tools/include
+
+SPECS_FLAGS = -I$(TOOLS_SRC) -I$(TOOLS_INCLUDE)
+
# ----------------------------------------------------
# Targets
# ----------------------------------------------------
@@ -113,8 +122,13 @@ clean clean_docs:
rm -rf $(HTMLDIR)/*
rm -f $(MAN3DIR)/*
rm -f $(TOP_PDF_FILE) $(TOP_PDF_FILE:%.pdf=%.fo)
+ rm -f $(SPECDIR)/*
rm -f errs core *~
+# erlang_mode doesn't have erlang source so we generate a dummy file for it.
+$(SPECDIR)/specs_erlang_mode.xml:
+ echo '<module name="erlang_mode"/>' > $(SPECDIR)/specs_erlang_mode.xml
+
# ----------------------------------------------------
# Release Target
# ----------------------------------------------------