Skip to content

Commit

Permalink
clean up rebar build problems with examples/src
Browse files Browse the repository at this point in the history
Clean up some duplicate options and extra whitespace in
examples/src/Makefile, and add examples/src to rebar.config to make
sure it gets built under rebar.
  • Loading branch information
vinoski committed Feb 17, 2012
1 parent 280e38e commit 8ec7125
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
8 changes: 5 additions & 3 deletions examples/src/Makefile
Expand Up @@ -14,13 +14,15 @@ MODULES= advanced_echo_callback \
basic_echo_callback

EBIN_FILES=$(MODULES:%=../ebin/%.$(EMULATOR))
ERLC_FLAGS+=-Werror $(DEBUG_FLAGS) -pa ../../yaws -I ../include
ERLC_FLAGS+=-Werror $(DEBUG_FLAGS)

all: $(EBIN_FILES)

debug:
$(MAKE) TYPE=debug
$(MAKE) TYPE=debug

clean:
rm -f $(EBIN_FILES)
install: all

install: all
cp -f ../ebin/*.beam $(DESTDIR)$(VARDIR)/yaws/ebin
1 change: 1 addition & 0 deletions rebar.config
Expand Up @@ -6,6 +6,7 @@
{erl_opts, [{platform_define,
"(linux|freebsd|darwin)", 'HAVE_SENDFILE'},
no_debug_info,
{src_dirs, ["examples/src"]},
warnings_as_errors]}.

{port_envs, [{"CFLAGS", "$CFLAGS -g -O3 -Wall -I/usr/include/security"},
Expand Down

0 comments on commit 8ec7125

Please sign in to comment.