Make.erl: Using environment variable in Emakefile

Mickael Remond mickael.remond@REDACTED
Fri Sep 24 18:39:06 CEST 2004


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ël Rémond
  http://www.erlang-projects.org/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: make.erl.diff
Type: text/x-patch
Size: 2334 bytes
Desc: not available
URL: <http://erlang.org/pipermail/erlang-patches/attachments/20040924/afe0e407/attachment.bin>


More information about the erlang-patches mailing list