Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inaki makefilefix #8

Merged
merged 3 commits into from
May 3, 2013
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Emakefile
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
{"src/*", [warn_unused_vars, warn_export_all, warn_shadow_vars, warn_unused_import, warn_unused_function, warn_bif_clash, warn_unused_record, warn_deprecated_function, warn_obsolete_guard, strict_validation, report, warn_export_vars, warn_exported_vars, warn_missing_spec, warn_untyped_record, debug_info, {outdir, "ebin"}, {i, "include"}]}.
{"tests/*", [warn_unused_vars, warn_export_all, warn_shadow_vars, warn_unused_import, warn_unused_function, warn_bif_clash, warn_unused_record, warn_deprecated_function, warn_obsolete_guard, strict_validation, report, warn_export_vars, warn_exported_vars, warn_missing_spec, warn_untyped_record, debug_info, {outdir, "ebin"}, {i, "include"}]}.
{"test/*", [warn_unused_vars, warn_export_all, warn_shadow_vars, warn_unused_import, warn_unused_function, warn_bif_clash, warn_unused_record, warn_deprecated_function, warn_obsolete_guard, strict_validation, report, warn_export_vars, warn_exported_vars, warn_missing_spec, warn_untyped_record, debug_info, {outdir, "ebin"}, {i, "include"}]}.
34 changes: 18 additions & 16 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,36 +3,34 @@ RUN := +Bc +K true -smp enable -pa ebin -s crypto -s inets -s ssl
all:
rebar get-deps && rebar compile

compile:
rebar compile

clean:
rebar clean

build_plt: all
rebar skip_deps=true build-plt
dialyzer --verbose --build_plt --apps kernel stdlib erts compiler hipe crypto \
edoc gs syntax_tools --output_plt ~/.apns4erl.plt

analyze: all
rebar dialyze

update-deps:
rebar update-deps

doc: all
rebar skip_deps=true doc
dialyzer --verbose --plt ~/.apns4erl.plt -Werror_handling ebin

xref: all
rebar skip_deps=true xref
run: all
rebar skip_deps=true --verbose xref
shell: all
if [ -f `hostname`.config ]; then\
erl -config `hostname` -boot start_sasl ${RUN} -s apns;\
erl -config `hostname` -boot start_sasl ${RUN};\
else\
erl -boot start_sasl ${RUN} -s apns;\
erl -boot start_sasl ${RUN};\
fi

shell: all
run: all
if [ -f `hostname`.config ]; then\
erl -config `hostname` -boot start_sasl ${RUN};\
erl -config `hostname` -boot start_sasl ${RUN} -s apns;\
else\
erl -boot start_sasl ${RUN};\
erl -boot start_sasl ${RUN} -s apns;\
fi

test: all
Expand All @@ -41,3 +39,7 @@ test: all
else\
erl -noshell -noinput ${RUN} -run apns_tests main;\
fi

doc: compile
rebar skip_deps=true doc

2 changes: 1 addition & 1 deletion rebar.config
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{require_otp_vsn, "R1[456]"}.
{erl_opts, [{src_dirs, ["src", "tests"]},
{erl_opts, [{src_dirs, ["src", "test"]},
warn_unused_vars,
warn_export_all,
warn_shadow_vars,
Expand Down
File renamed without changes.