Erlang Mailing Lists

Author Message

<  Erlang patches mailing list  ~  Make.erl: Using environment variable in Emakefile

mickael.remond at erlang-
Posted: Fri Sep 24, 2004 4:39 pm Reply with quote
Guest
Hello,

Here is a small change that I find very usefull for me. It allows me to
use environment variable to make some part of Erlang Emakefile
configurable. This is very usefull to compile Erlang modules that have
dependancies with other Erlang software. You can thus configure
environment variable to define where dependant software reside on your
own system.

Environment variable substitution is triggered by the use of double
percent before and after the environment variable name in attributes
value. For example:

{'src/ejabberd_app.erl', [{outdir, "ebin"}, {i, "%%EJABBERD_SO_PATH%%"}]}.

Please tell me if you want me to change something, if this could help
integration with Erlang/OTP

--
Micka

Display posts from previous:  

All times are GMT
Page 1 of 1
This forum is locked: you cannot post, reply to, or edit topics.

Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum