<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -1,14 +1,13 @@
 MAIN=hello
-export PATH=/bin:/usr/bin:/sw/erlang/bin:$PATH
 LFE_EBIN=${HOME}/lfe/ebin/
-
+ERL_LOAD='code:load_file(lfe_comp).'
+ERL_COMP='File=hd(init:get_plain_arguments()), try lfe_comp:file(File,[report,{outdir,&quot;.&quot;}]) of {ok,_Module} -&gt; halt(0); error -&gt; halt(1); All -&gt; io:format(&quot;./~s:1: ~p~n&quot;,[File,All]) catch X:Y -&gt; io:format(&quot;./~s:1: Catch outside of compiler: ~p ~p ~n&quot;,[File,X,Y]) end, halt(1).'
 
 all: ${MAIN}.beam start
 
-${MAIN}.beam: ${MAIN}.lfe
-	@erl -noshell -pa ${LFE_EBIN} -eval 'code:load_file(lfe_comp).' \
-	-eval 'lfe_comp:file(hd(init:get_plain_arguments())), halt(0).' \
-	-extra ${MAIN}.lfe
+%.beam : %.lfe
+	@echo Recompile: $&lt;
+	@erl -pa ${LFE_EBIN} -noshell -eval $(ERL_LOAD) -eval $(ERL_COMP) -extra $&lt; 
 
 start: ${MAIN}.beam
 	@erl -noshell -pa ${LFE_EBIN} -eval 'code:load_file(${MAIN}).' -eval '${MAIN}:start().' -s erlang halt</diff>
      <filename>Makefile</filename>
    </modified>
    <modified>
      <diff>@@ -1,5 +1,5 @@
 (defmodule hello
-  (export (start 0)))
+  (export all))
 
 (defun start ()
-  (: io format '&quot;Hello World!~n&quot;))
\ No newline at end of file
+  (: io format '&quot;Hello World!~n&quot;))</diff>
      <filename>hello.lfe</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>e8095addad4f42a4c42be30f0556ea1f7d27d876</id>
    </parent>
  </parents>
  <author>
    <name>cadar</name>
    <email>cadar777@gmail.com</email>
  </author>
  <url>http://github.com/cadar/hello-lfe/commit/188655468d023b482f5c8ba086291f04e538e58a</url>
  <id>188655468d023b482f5c8ba086291f04e538e58a</id>
  <committed-date>2009-09-14T13:15:01-07:00</committed-date>
  <authored-date>2009-09-14T13:15:01-07:00</authored-date>
  <message>support for more lfe files</message>
  <tree>1bede6e40f78282d5d858f00fd24155621c1f4ff</tree>
  <committer>
    <name>cadar</name>
    <email>cadar777@gmail.com</email>
  </committer>
</commit>
