[erlang-questions] linking modules from other directories
Беляев Дмитрий
D.Belyaev@REDACTED
Mon Oct 12 13:49:46 CEST 2009
http://en.wikipedia.org/wiki/Symbolic_link
This helps to one library to be used in different projects instead of copying it.
Often I create “proj/Emakefile” with something like this:
{"src/*", [debug_info, {outdir, "ebin"}]}.
{"deps/*/src/*", [debug_info, {outdir, "ebin"}]}.
I start shell with current directory in project root. Then I have compile project with “erl –make” and start application with command like “erl –pa ebin”.
Generally I have all erl files located in src without any subfolders.
Dmitry
From: kamiseq [mailto:kamiseq@REDACTED]
Sent: Monday, October 12, 2009 3:37 PM
Subject: Re: [erlang-questions] linking modules from other directories
I'd recommend you make directory "proj/deps" and make symlink "proj/deps/util".
ok and what is symlink ??
Then you can setup compilation options to compile "proj/deps/util/*" to "proj/ebin".
can you give me some small ex - I cant find anything useful on ggl.
but then all my files will go into ebin dir??
--
pozdrawiam
Paweł Kamiński
kamiseq@REDACTED<mailto:kamiseq@REDACTED>
pkaminski.prv@REDACTED<mailto:pkaminski.prv@REDACTED>
______________________
More information about the erlang-questions
mailing list