Added a way to build development docs (edoc) without changing makefile.
authorStanislaw Klekot <dozzie@jarowit.net>
Wed, 24 May 2017 17:31:43 +0000 (19:31 +0200)
committerStanislaw Klekot <dozzie@jarowit.net>
Wed, 24 May 2017 17:31:43 +0000 (19:31 +0200)
Makefile

index efd6aba..4709921 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -23,8 +23,13 @@ CONFDIR = /etc/statetip
 ESCRIPT_ARGS_FILE = $(CONFDIR)/erlang.args
 
 ERLC_OPTS = +debug_info
-EDOC_OPTS = {overview, "src/overview.edoc"}, {dir, "doc/edoc"}, \
-            {source_path, ["src", "examples"]}, todo
+EDOC_OPTS := {overview, "src/overview.edoc"}, \
+             {dir, "doc/edoc"}, \
+             {source_path, ["src", "examples"]}, \
+             todo
+ifneq ($(devel),)
+EDOC_OPTS := $(EDOC_OPTS), private
+endif
 
 include erlang.mk
 include erlang.install.mk