Age | Commit message (Collapse) | Author |
|
|
|
Also added a copyright line in the eunit plugin due to the
extensive work I have done there a few days ago.
|
|
The point of this feature is to fix common issues users
experience.
This feature, when used, attempts to fix projects that
are incompatible with erlang.mk. It currently is able
to build a new Makefile based on information it finds
in a rebar.config file (only deps for now) and also
to fix the .app.src file in various ways.
|
|
The general idea is that erlang.mk now keeps track of what kind
of build it generated. A test build is valid for all subsequent
test target invocations. A normal build is only valid for itself
and releases.
This rework adds the ability to specify deps to eunit.
The EUNIT_DIR variable is gone in favor of a more global TEST_DIR.
The tests-ct target got renamed to ct and documented.
Many more minor changes were done during the course of testing
these changes.
|
|
No more plugin stuff creeping into core.
|
|
|
|
Use "+A0 -noinput -boot start_clean" as start argument.
Use halt/{1,2} to shutdown the VM faster.
|
|
Parallel compilation is now only enabled for "make" and "make deps app".
To ensure order we spawn a new Make process for "deps", "app" and
"rel" when the "all" target (or no target) is used.
|
|
|
|
|
|
|
|
|
|
People who don't want export_all simply don't use it. The
warning is annoying for those edge cases where it's actually
useful, as it can't be disabled on a per-file basis.
|
|
Smaller non-verbose output.
|
|
|
|
Fixed a small whitespace issue in the silent output.
|
|
|
|
|
|
This is unfortunately unsuited as a plugin due to its dependence on erlc
for compilation. The MIBs must be compiled before an Erlang source.
|
|
|
|
As much as I dislike this change, this should simplify the
process of moving to erlang.mk.
|
|
|
|
|
|
If all deps know where to download it, then don't download index file.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
The missing ; makes the DEPPKG= line run together with the VS= line which makes it similar to this
FreeBSD 8.2 /bin/sh results:
$ A=x B=$A;
$ echo $A
x
$ echo $B
$
The same with bash:
$ A=x B=$A;
$ echo $A
x
$ echo $B
x
|
|
|
|
git://github.com/crownedgrouse/erlang.mk
Extra changes include:
* Not running the target if the ebin/ directory does not exist
* Moved the target in the appropriate section in the file
|
|
|
|
An empty list is required for the modules tuple, as in
{modules, []}
so a sed call could populate the list. This is mentioned in README, but
can be overlooked.
If the empty tuple is not present, relx will fail on missing dependency
errors. Therefore, fail make if the empty tuple isn't found, to
help the user diagnose the problem.
|
|
If a dependency specified in DEPS is unknown or invalid (its VS
is not "git"), erlang.mk will fail. Now, add a human-readable
error message to help the user understand what the problem is.
|
|
|
|
|
|
|
|
Two issues got fixed:
* The variable name for the package file got changed to PKG_FILE2
to avoid conflicts with the PKG_FILE from previous erlang.mk versions.
* The way repositories are fetched changed to fix an issue preventing
fetching the package file *and* the repositories on the same invokation.
|
|
|
|
|
|
|
|
|
|
This commit adds two columns to the package index file: the
method used to retrieve the dependency (only git supported
at this point) and the preferred version (a commit or
equivalent in the case of git).
Now that all the necessary information is in the package
index file, the dep_* lines become optional. It is possible
to fetch dependencies by just listing it in the DEPS variable,
for example this would fetch both cowboy and jsx:
DEPS = cowboy jsx
The dep_* line can be used to override the defaults. It now
takes three values, the method used to retrieve the dependency,
the repository URL and the preferred version. The only change
from before is the first value being added.
|
|
|
|
|
|
GitHub issues a 301 Moved Permanently response on all calls to
`https://raw.github.com`, which redirects to
`https://raw.githubusercontent.com`.
|
|
* The build.config says what gets into the generated erlang.mk.
* The default erlang.mk in the repository hasn't changed yet.
* Clean targets were separated into "clean" and "distclean".
* The "help" target was added to display some help message.
I probably broke a couple things...
|