[erlang-questions] Emakefile and macro

Hynek Vychodil <>
Thu Feb 5 17:00:01 CET 2009


On Wed, Feb 4, 2009 at 8:31 AM, Bengt Kleberg <>wrote:

> Greetings,
>
> Try to change {d,"MY_MACRO", "ITS_VALUE"} to {d,'MY_MACRO', 'ITS_VALUE'}
>

Value can be string or any erlang term.

>
>
> bengt
>
> On Tue, 2009-02-03 at 19:24 +0100, David Nonnenmacher wrote:
> > Hello,
> >
> > I would like to compile some erlang files that contains a macro. The
> > Emakefile has the following contents:
> >
> > {"/home/dnonnenm/PROJECTS/lib/my_appli/src/*",
> >  [{i,"/home/dnonnenm/PROJECTS/lib/"},
> >   {d,"MY_MACRO", "ITS_VALUE"},
> >   {outdir,"/home/dnonnenm/PROJECTS/lib/my_appli/ebin"}]}.
> >
> > The problem is that there is no generated beam. The output command (ie
> > erl -make) is the following:
> >
> > Recompile: /home/dnonnenm/PROJECTS/lib/my_appli/src/module_1
> > Recompile: /home/dnonnenm/PROJECTS/lib/my_appli/src/module_2
> > Recompile: /home/dnonnenm/PROJECTS/lib/my_appli/src/module_3
> >
> > There are no errors, no warnings.
> >
> > I did the same but removing the macro definition (ie {d, ....}), and
> > there are some beam generated. But I have an error dur to the missing
> > macro.
> >
> > Is this a bug ? or did i write something bad ?
> >
> > David
> > _______________________________________________
> > erlang-questions mailing list
> > 
> > http://www.erlang.org/mailman/listinfo/erlang-questions
>
> _______________________________________________
> erlang-questions mailing list
> 
> http://www.erlang.org/mailman/listinfo/erlang-questions
>



-- 
--Hynek (Pichi) Vychodil

Analyze your data in minutes. Share your insights instantly. Thrill your
boss.  Be a data hero!
Try Good Data now for free: www.gooddata.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20090205/685787c6/attachment.html>


More information about the erlang-questions mailing list