Age | Commit message (Collapse) | Author |
|
|
|
By adding a forced req to a erlang.mk target, we make sure that make
will always remake the erlang.mk file, and start over when we have the
updated file in place.
From [3.5 How Makefiles are remade](https://www.gnu.org/software/make/manual/html_node/Remaking-Makefiles.html#Remaking-Makefiles)
After all makefiles have been checked, if any have actually been
changed, make starts with a clean slate and reads all the
makefiles over again.
|
|
There is no value in a verbose mode for eunit by default because
eunit will print errors of failing tests regardless of what mode
is used. Verbose mode only seem to output what modules are tested
and what tests pass in those modules, in addition to errors.
Disabling verbose will make errors much easier to notice.
|
|
|
|
|
|
|
|
|
|
|
|
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.
|
|
Given that 'make all' is the default build, it seems surprising to
delete this without an explicit request for a 'distclean'.
|
|
|
|
|
|
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.
|
|
|
|
|
|
|
|
|
|
|
|
if DTL_FULL_PATH=1
/templates/a/b/c.dtl -> a_b_c_dtl.beam
otherwise (as it was before)
-> c_dtl.beam
add return_errors flag to erlydtl:compile to return {error, Errors} instead of error;
add {doc_root, "templates"} flag to allow extend and include templates from parent directories (by default erlydtl looks for parent template in the directory of the current template);
make compilation stop if erlydtl:compile returns an error
|
|
|
|
|
|
|
|
* Rename and add the default state functions `state_name/2,3`
* Rename the variable `State` into `StateData` as per documentation
|
|
|
|
This fixes the issue where the project name and project directory
differ, and allow us to support directory of the form name-version.
|
|
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.
|
|
* Add the following flags to LDFLAGS needed at linkage for OS X,
and remove the following flags from CFLAGS and CPPFLAGS:
`-arch x86_64 -flat_namespace -undefined suppress`
|
|
* The `-regex` option of `find` command to determine `SOURCES` in
plugins/c_src.mk` is not portable; does not work on OS X.
Rewrite with a portable form of using `find` native `-name`
command option with `\(`, `-o`, and `\)`.
* Support file extentions of `*.c`, `*.C`, `*.cc`, and `*.cpp`.
|
|
|
|
We can just LDFLAGS += and whatnot.
|
|
Add compile .cc,.cpp,.C files as C++.
Compile each source file to .o.
Link all .o object to .so.
Delete .o on clean target.
|
|
|
|
|
|
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.
|
|
|
|
|