Skip to content

Commit

Permalink
Clear out MAKEFLAGS variable on FreeBSD that casued build errors
Browse files Browse the repository at this point in the history
  • Loading branch information
jaredmorrow committed Jun 13, 2012
1 parent 99ea666 commit 0f6c3cc
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 6 deletions.
2 changes: 1 addition & 1 deletion GNUmakefile
Expand Up @@ -10,7 +10,7 @@ clean: c_src_clean
$(REBAR) clean

c_src:
cd c_src; $(MAKE) js
cd c_src; $(MAKE)

c_src_clean:
cd c_src; $(MAKE) clean
Expand Down
8 changes: 4 additions & 4 deletions Makefile
Expand Up @@ -3,7 +3,7 @@
# not the system 'make' (eg. most non-linux UNIXes).

all:
gmake all
@gmake all

verbose:
@gmake verbose
Expand All @@ -15,12 +15,12 @@ docs:
@gmake docs

c_src: FORCE
gmake c_src
@gmake c_src

FORCE:

c_src_clean:
gmake c_src_clean
@gmake c_src_clean

clean:
gmake clean
@gmake clean
7 changes: 6 additions & 1 deletion rebar.config
Expand Up @@ -26,7 +26,12 @@

%% OS X Snow Leopard flags for 32-bit
{"darwin10.*-32$", "CFLAGS", "-m32"},
{"darwin10.*-32$", "LDFLAGS", "-arch i386"}
{"darwin10.*-32$", "LDFLAGS", "-arch i386"},

%% Prevent the make->gmake transition from infecting
%% MAKEFLAGS with bad flags that confuse gmake
{"freebsd.*", "MAKEFLAGS", ""}

]}.

{pre_hooks, [{compile, "make c_src"}]}.
Expand Down

0 comments on commit 0f6c3cc

Please sign in to comment.