Permalink
Browse files

Add macro for compiling with rebar (see issue #1)

Signed-off-by: Peter Lemenkov <lemenkov@gmail.com>
  • Loading branch information...
1 parent a435404 commit f3377374b7b79b6cee05e0e0ec5d50d6654b8d75 @lemenkov committed Jan 22, 2011
Showing with 6 additions and 0 deletions.
  1. +6 −0 macros.erlang
View
@@ -11,3 +11,9 @@
%global __find_provides %__erlang_provides\
%global __find_requires %__erlang_requires\
%{nil}
+
+%__rebar_compile \
+ CFLAGS="${CFLAGS:-%optflags}" ; export CFLAGS ; \
+ CXXFLAGS="${CXXFLAGS:-%optflags}" ; export CXXFLAGS ; \
+ FFLAGS="${FFLAGS:-%optflags}" ; export FFLAGS ; \
+ rebar compile -v

0 comments on commit f337737

Please sign in to comment.