aboutsummaryrefslogtreecommitdiffstats
path: root/core
AgeCommit message (Collapse)Author
2015-05-18Proper fix for NIF code detection when port_specs is usedLoïc Hoguin
Adds rafter back to the index.
2015-05-18Fix jiffy buildLoïc Hoguin
Breaks rafter build. Remove it temporarily.
2015-05-18Add platform_define support for erl_optsLoïc Hoguin
Fixes jsx maps support.
2015-05-18Fix issue with first files detectionLoïc Hoguin
2015-05-17Improve detection of compile first files for rebar appsLoïc Hoguin
File includes header that defines parse_transform that imports function. Sigh.
2015-05-17Ignore some common unneeded deps when patching rebar appsLoïc Hoguin
Things like edown or meck are quite common and only used for building doc comments or testing. Proper is unfortunately required at this point.
2015-05-17Fix port_specs with multiple input filesLoïc Hoguin
2015-05-17Find first files from source formsLoïc Hoguin
Some projects use parse transforms but do not put them in erl_first_files. We need to parse the files directly and find the compile directives ourselves.
2015-05-17Handle port_specs with 2 valuesLoïc Hoguin
For exml from mongooseim.
2015-05-16Preliminary port_specs supportLoïc Hoguin
Fixes some projects that were building but couldn't be loaded because the .so file name was incorrect.
2015-05-16Add IGNORE_DEPS variableLoïc Hoguin
This variable is very useful to avoid downloading dependencies that are not needed for normal use, for example proper, meck or rebar plugins.
2015-05-16Initial rebar2 plugins supportLoïc Hoguin
We do nothing more than what is necessary to make riak_pb work. It's possible other plugins will not work, however this is the only plugin that I have seen to be required so far, and hook plugins seem to have been removed from rebar3, so it should be fine.
2015-05-16Ignore Makefiles that include non-existing .mk filesLoïc Hoguin
2015-05-16Handle parse_transforms and defines for rebar autopatchLoïc Hoguin
2015-05-16Don't be strict for CFLAGS of autopatched depsLoïc Hoguin
2015-05-15Add support for rebar.config.scriptLoïc Hoguin
2015-05-15Change the alternative rebar detection to avoid messagesLoïc Hoguin
The use of 'make -n' introduced some unwanted messages. This new solution doesn't have this problem.
2015-05-15Add another test for rebar detectionLoïc Hoguin
If we can't find "rebar" in the Makefile, we now try 'make -n' and check the output. This will catch cases where the "rebar" stuff is defined in included files.
2015-05-15Replace make with $(MAKE) for BSD compatibilityLoïc Hoguin
2015-05-14Add ASN.1 compilation supportLoïc Hoguin
2015-05-14Add package json to the indexLoïc Hoguin
This commit also fixes dependencies which have no Makefile and are not Erlang projects. The detection of Erlang project is a little naive at the moment but works. We can refine it later on if needed.
2015-05-14Make sure auto patched dependencies recompile fineLoïc Hoguin
2015-05-14Get rid of the autopatch hack for properLoïc Hoguin
2015-05-14Initial autopatch of port env and hooksLoïc Hoguin
2015-05-13Add a hack to make proper work againLoïc Hoguin
It was between this and adding it to NO_AUTOPATCH. This has the advantage of not requiring rebar.
2015-05-13Improve rebar detection for autopatchLoïc Hoguin
2015-05-13Don't build a release if dependencyLoïc Hoguin
Adds neo4j and shotgun back to the package index.
2015-05-12More build improvementsLoïc Hoguin
* Generate configure if there is only configure.ac * Don't touch the .app/.app.src if neither exists
2015-05-12More improvements for building dependenciesLoïc Hoguin
2015-05-12Autopatch by defaultLoïc Hoguin
Also fix a number of issues with packages from the index. Some packages were temporarily removed and will be added back once they build correctly.
2015-05-10Convert autopatch to an Erlang snippetLoïc Hoguin
2015-05-10Convert the Erlang version of core_http_get to an Erlang snippetLoïc Hoguin
2015-05-10Fix an issue with escaping double quotes of Erlang snippetsLoïc Hoguin
2015-05-09Add a 'run' command to run the relx releaseLoïc Hoguin
Should only be used during development. Stolen idea from Tristan Sloughter who stole it from Ahmad Sherif. This commit also introduces the 'erlang' function for executing Erlang code written directly in the Makefile. The rest of the project will eventually move to using it as it's much cleaner than the previous solution.
2015-05-09Skip any handling of dependencies if SKIP_DEPS is definedLoïc Hoguin
This includes fetching and compilation. Example usage: SKIP_DEPS=1 make tests Should improve people's life when there are no Internets.
2015-05-09Merge branch 'cover' of https://github.com/zuiderkwast/erlang.mkLoïc Hoguin
Rebased and moved ct.cover.spec into the test/ directory.
2015-05-09Silence fetching of dependenciesLoïc Hoguin
2015-05-08Fully specify the ct pathsLoïc Hoguin
Avoids some annoying warnings when Common Test runs. I believe this is a regression.
2015-05-07Add a check targetLoïc Hoguin
Compiles, runs tests and runs all sorts of analysis like Dialyzer.
2015-05-07Add Asciidoc documentation supportLoïc Hoguin
2015-05-07Merge branch 'pu-autopatch-hint' of https://github.com/kaos/erlang.mkLoïc Hoguin
2015-05-07Merge branch 'pu-autopatch-fix' of https://github.com/kaos/erlang.mkLoïc Hoguin
2015-05-07Support for copying dependenciesJohan Persson
2015-04-17propagate failed deps builds.Andreas Stenius
Unless we return a non-zero result from the deps target, any issues in the build of a dependency will be masked.
2015-03-27always apply autopatch when requested. fixes #217.Andreas Stenius
If rebar.config is found, the `deps` and `erl_first_files` options are migrated to the Makefile for erlang.mk
2015-03-26Require makefile to build dep. Fixes #218.Andreas Stenius
2015-01-24Combined coverage report for eunit and ctViktor Söderqvist
2015-01-12Update copyright yearLoïc Hoguin
Also added a copyright line in the eunit plugin due to the extensive work I have done there a few days ago.
2015-01-12Add "necessary evil" autopatch featureLoïc Hoguin
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.
2015-01-10Introduce test builds and unify testing tools interfaceLoïc Hoguin
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.