Browse Source

Add documentation for ERLC_EXCLUDE

Loïc Hoguin 9 years ago
parent
commit
561a12fec4
1 changed files with 12 additions and 0 deletions
  1. 12 0
      doc/src/guide/app.asciidoc

+ 12 - 0
doc/src/guide/app.asciidoc

@@ -239,6 +239,18 @@ include erlang.mk
 ERLC_OPTS := $(filter-out -Werror,$(ERLC_OPTS))
 ----
 
+==== ERLC_EXCLUDE
+
+`ERLC_EXCLUDE` can be used to exclude some modules from the
+compilation. It's there for handling special cases, you should
+not normally need it.
+
+To exclude a module, simply list it in the variable, either
+before or after including Erlang.mk:
+
+[source,make]
+ERLC_EXCLUDE = cowboy_http2
+
 === Cold and hot builds
 
 The first time you run `make`, Erlang.mk will build everything.