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


_______________________________________________
riak-users mailing list
riak-users@lists.basho.com
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com

Reply via email to