Commit graph

19 commits

Author SHA1 Message Date
varnerac-ubnt
33b8769bf7 Add typer target
This patch adds a typer target to the Makefile. It makes it
easier for developers to start adding specs to the codebase. It
also as a build_plt target with the built-in applications typer
needs to analyze rebar.

This also includes the Erlang version in the generated PLT file.
typer and dialyzer targets use this file. Finally, the distclean
target removed the versioned PLT file.
2014-08-28 21:46:59 +02:00
Tuncer Ayaz
b6908421b7 erlc: clean-up, enhance, and regression fix fd17693
* update files
* fix Dialyzer warning
* unconditionally enable info fil
* clean-up inconsistencies
* use term_to_binary compression
* use try...catch instead of case...catch...of
* do not write build info file if the graph is unmodified
* store info file as <base_dir>/.rebarinfo
* properly support list of compile directives
* fix regressions:
 - Fix a bug in handling of files to compile first.
 - If a file that is depended upon itself depends on other files, make sure
   those are compiled first. While at it, rename variables for correctness.
   Reported-by: David Robakowski
 - Make sure that FirstFiles has no dupes and preserves the proper order.
 - headers referenced via -include_lib() were not properly resolved to absolute
   filenames
 - .erl files found in sub dirs of src_dirs were not properly resolved to
   absolute filenames
2014-03-05 15:44:38 +01:00
Tuncer Ayaz
5766b77451 Delete dialyzer_warnings on 'make distclean' 2013-06-24 21:44:46 +02:00
Dave Smith
d22c1b1ab2 Enable verbose output from retest 2013-04-22 08:55:36 -06:00
Tuncer Ayaz
8b76d23aae Makefile: call Dialyzer with -nn flag
This speeds up 'make dialyzer' for the common case of Erlang/OTP built
without --enable-native-libs.
2013-03-04 17:16:00 +01:00
Dave Smith
720d71e47d Add travis target to make it easier to reproduce failures locally 2013-03-04 08:33:54 -07:00
Tuncer Ayaz
8e12652aa6 Makefile: fix 'clean' and add 'distclean'
* fix 'clean' to remove .eunit (not .test)
* add 'distclean' to also remove deps/
2012-11-26 13:39:42 +01:00
Tuncer Ayaz
e75a97ad33 Add 'qc' cmd and rename eunit-compile to test-compile 2012-07-23 16:22:06 +02:00
Tuncer Ayaz
691a59669b Add xref to travis run and clean up Makefile 2012-07-02 13:39:37 +02:00
Tuncer Ayaz
23f1f8147f Remove unused Makefile variables 2012-07-01 23:33:39 +02:00
Tuncer Ayaz
35ef3631b4 Refactor ci support 2012-07-01 22:31:50 +02:00
Dave Smith
1c98f6ccd4 Add binary target for pushing new build of rebar into rebar.wiki 2012-06-04 08:56:51 -06:00
Tuncer Ayaz
79a580200d Fix Makefile to not ignore xref return code 2012-04-02 19:22:15 +02:00
Amit Kapoor
0191806f92 Add support for custom xref queries
The custom queries are configured in rebar.config via the tuple
{xref_queries, [{query(), query_result()},...]}.  The implementation
passes the query() string to xref:q and compares the return value with
query_result(). It will result in an error if they do not match.

The following configuration, for example, is the same as running the
xref check undefined_function_calls. It additionally filters
ejabberd_logger:*_msg/4 from the result as these functions are generated
on execution by ejabberd and not available at compile time.

{xref_queries, [{"(XC - UC) || (XU - X - B -
                 (\"ejabberd_logger\":\".*_msg\"/\"4\"))",[]}]}.

This patch also modifies the build process of this package by running a
custom query instead of doing a diff against a static xref_warning file.
2012-04-02 19:14:37 +02:00
Tuncer Ayaz
af3eab6522 Enhance make check (Inspired-by: Stavros Aronis) 2012-01-01 17:04:37 +01:00
Tuncer Ayaz
6f3f234d34 Update Dialyzer options 2011-09-04 20:13:25 +02:00
Tuncer Ayaz
c2a5d286f0 Add check target to Makefile 2011-09-02 19:51:18 +02:00
Dave Smith
d6b79fb8c4 Add "clean" target 2010-06-08 13:23:36 -06:00
Dave Smith
564b99334d Add helper makefile; update bootstrap to always build w/ debug_info 2010-04-09 09:24:45 -06:00