# Install LFE as an otp release
git clone git://github.com/dysinger/lfe.git
cd lfe
make && make install
# see the Makefile - it uses rebar to compile ERL code
# & install it as an otp release in my erlang lib dir
# Now that LFE is installed in our erlang as a lib
# lets move to a hello world OTP project
git clone git://github.com/dysinger/lfe-otp-ping-pong.git
cd lfe-otp-ping-pong
./rebar compile verbose=1 ;# compiles LFE & ERL code (if any)
./rebar install ;# installs ping-pong OTP release in my erlang lib
:)
In this way you can use rebar to work with erl & lfe code
interchangeably and in the same project even. All you need is a .app
file in your ebin dir to tel rebar what modules you want to compile.
It will then look for the .erl and .lfe files in src and your deps in
"deps" dir (if any).
-Tim
I'm not a rebar expert but I am guessing that what is needed is a rule in rebar.config which tells rebar how to compile .lfe files. I will ask a friend who has worked with rebar how to do this. Perhaps how to tell rebar WHERE the lfe compiler is.
Robert
--
You received this message because you are subscribed to the Google Groups "Lisp Flavoured Erlang" group.
To unsubscribe from this group and stop receiving emails from it, send an email to lisp-flavoured-e...@googlegroups.com.
To post to this group, send email to lisp-flavo...@googlegroups.com.
Visit this group at http://groups.google.com/group/lisp-flavoured-erlang?hl=en-US.
For more options, visit https://groups.google.com/groups/opt_out.