Re: Rebar: user defined macro

2012-11-05 Thread Zabrane Mickael
Thx Bryan, found it during the weekend ;) Regards, Zabrane On Nov 5, 2012, at 4:45 PM, Bryan Fink wrote: > On Fri, Nov 2, 2012 at 5:17 PM, Zabrane Mickael wrote: >> I've this in my makefile: >> >> compile: >>@$(REBAR) compile -Dfoo=17 > ...snip... >> How can I defined macro with value

Re: Rebar: user defined macro

2012-11-05 Thread Bryan Fink
On Fri, Nov 2, 2012 at 5:17 PM, Zabrane Mickael wrote: > I've this in my makefile: > > compile: > @$(REBAR) compile -Dfoo=17 ...snip... > How can I defined macro with value using rebar? Hi, Zabrane. It looks to me like the command line -D option for rebar does not support defining values

Rebar: user defined macro

2012-11-02 Thread Zabrane Mickael
Hi guys, I've this in my makefile: compile: @$(REBAR) compile -Dfoo=17 I want to get the value of 'foo' (which is 17) inside my Erlang code. -ifndef(foo). -define(foo, 'unknown'). -endif. But 'foo' is never defined. How can I defined macro with value using rebar? Regards, Zabrane