<div dir="ltr"><div class="gmail_quote">If you want all you're beam files in the ebin directory, run `erlc mymodule.erl -o ebin`. Try out my makefile. I think you'll like it.<br><br><br><br><span style="font-family: courier new,monospace;">SRCS=src/*.erl</span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">BIN=ebin</span><br style="font-family: courier new,monospace;"><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">all:</span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;"># Compile bytecode</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">    erlc -I include -pa $(BIN) -o $(BIN) -v $(SRCS)</span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;"># Compile documentation</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">    erl -noshell -eval 'edoc:files(filelib:wildcard("src/*.erl"), [{dir, "doc"}]).' -s init stop</span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">    </span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">clean:</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">    rm -f $(BIN)/*</span><br><div dir="ltr"><div><div></div><div class="Wj3C7c"><br><br><br><div class="gmail_quote">On Wed, Aug 13, 2008 at 8:50 AM, Matthew Williamson <span dir="ltr"><<a href="mailto:dawsdesign@gmail.com" target="_blank">dawsdesign@gmail.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div dir="ltr">Really I just mean calling erlc on all the files. See erlc(1) (`man erlc`). Even a bash script would suffice.<br>

<br><div class="gmail_quote">2008/8/13 Hynek Vychodil <span dir="ltr"><<a href="mailto:vychodil.hynek@gmail.com" target="_blank">vychodil.hynek@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><div></div><div><div dir="ltr">No, I don't mean using it in production system. But anyway automate stop/compile/deploy/start cycle is better way than solve it by auto recompile. It should be controllable. When it is controllable, you can transform stop/compile/deploy/start cycle to compile/upgrade without stop cycle as erlang provide by hot code swap in controlled manner. Do it every time when I press :w or C-x C-s or auto-save is invoked is weird. It should be invoked by pressing another button.<div>


<br>
<br><div class="gmail_quote">On Wed, Aug 13, 2008 at 11:08 AM, Paul Guyot <span dir="ltr"><<a href="mailto:pguyot@kallisys.net" target="_blank">pguyot@kallisys.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">



Le 13 août 08 à 10:56, Hynek Vychodil a écrit :<div><br>
<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I cooked another one for myself (a little shorter than yours) but than I<br>
decide it is wrong idea. Auto recompilation is good toy but contraindication<br>
to reliability.<br>
</blockquote>
<br>
<br></div>
Do you mean using auto recompilation in production systems? There seems to be a misunderstanding here, as I'm mentioning auto-recompilation as a development tool, i.e. as a way to avoid stop/compile/deploy/start cycles during development.<br>



<font color="#888888">
<br>
Paul<br>
<br>
</font></blockquote></div><br><br clear="all"><br></div>-- <br>--Hynek (Pichi) Vychodil<br>
</div>
<br></div></div><div>_______________________________________________<br>
erlang-questions mailing list<br>
<a href="mailto:erlang-questions@erlang.org" target="_blank">erlang-questions@erlang.org</a><br>
<a href="http://www.erlang.org/mailman/listinfo/erlang-questions" target="_blank">http://www.erlang.org/mailman/listinfo/erlang-questions</a><br></div></blockquote></div><br></div>
</blockquote></div><br></div></div></div>
</div><br></div>