diff options
author | Loïc Hoguin <[email protected]> | 2018-11-30 22:57:15 +0100 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2018-11-30 22:57:15 +0100 |
commit | 3e93a7557a3e1ed1b1404e6d84fadc10ac22f426 (patch) | |
tree | a3f6268fc8e2b202546094380c41cfb5d93dcad2 /doc | |
parent | 48d67edc425c6daaad5b55d139bdc1dd1c1b8300 (diff) | |
download | erlang.mk-3e93a7557a3e1ed1b1404e6d84fadc10ac22f426.tar.gz erlang.mk-3e93a7557a3e1ed1b1404e6d84fadc10ac22f426.tar.bz2 erlang.mk-3e93a7557a3e1ed1b1404e6d84fadc10ac22f426.zip |
Document selecting RELX_CONFIG for prod/dev
Diffstat (limited to 'doc')
-rw-r--r-- | doc/src/guide/releases.asciidoc | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/doc/src/guide/releases.asciidoc b/doc/src/guide/releases.asciidoc index 92968ff..68174b3 100644 --- a/doc/src/guide/releases.asciidoc +++ b/doc/src/guide/releases.asciidoc @@ -15,6 +15,20 @@ the variable before including Erlang.mk: [source,make] RELX_CONFIG = $(CURDIR)/webchat.config +It is also possible to have multiple 'relx.config' files. +For example you might have one for development and one for +production. You can use conditionals to decide which one +should be used: + +[source,make] +---- +ifdef PROD +RELX_CONFIG = $(CURDIR)/relx.prod.config +else +RELX_CONFIG = $(CURDIR)/relx.dev.config +endif +---- + Relx does not need to be installed. Erlang.mk will download and build it automatically. |