aboutsummaryrefslogtreecommitdiffstats
path: root/core
AgeCommit message (Collapse)Author
2018-12-10Make the version warning less repetitiveLoïc Hoguin
2018-12-10Optimization: reduce the number of shell commands on noopsLoïc Hoguin
2018-12-10Correct expanding of shell variables in autopatch againLoïc Hoguin
This solution should work better, previous one would sometimes expand incorrectly and fail.
2018-12-07Autopatch: allow configuring REBAR_GIT and REBAR_COMMITLoïc Hoguin
And use this in the tests to fetch Rebar only once and then clone from the local repository. This should speed up tests a little.
2018-12-07core_find: Ignore files with spaces to avoid issuesLoïc Hoguin
2018-12-07Autopatch: erl_first_files can contain xrl/yrlLoïc Hoguin
2018-12-05Implement the dep_built optimization for test/shell depsLoïc Hoguin
2018-12-05Better handle ERLANG_OTP and ERLANG_HIPELoïc Hoguin
A release that gets removed in a ci:: preceding the running of CI rules would end up not rebuilding it due to how a warning was silenced when using ERLANG_OTP.
2018-12-05Allow hooking before/after autopatchLoïc Hoguin
2018-12-04Remove some repetition in some outputLoïc Hoguin
2018-12-04Delete $(ERLANG_MK_TMP) directory after 'make erlang-mk'Loïc Hoguin
This allows refreshing tools at the same time Erlang.mk gets updated.
2018-12-04Add a V=3 that works like V=2 across all shell commandsLoïc Hoguin
V=2 only works against target commands, V=3 will also work against $(shell ...) commands.
2018-12-03Print a changelog when updating Erlang.mkLoïc Hoguin
2018-12-03Don't rebuild dependencies by defaultLoïc Hoguin
Unless it's a symbolic link, it's built directly, FULL=1 is set or the file ebin/dep_built in the dependency is removed. See the documentation changes for more details. This provides immense build speed gains, for example on a RabbitMQ project it went from 10s to 1s for the 2nd+ builds.
2018-11-30Validate the .app file after generating itLoïc Hoguin
2018-11-30Support Elixir as a dependency via ELIXIR_PATCH=1Loïc Hoguin
For example: DEPS = elixir ELIXIR_PATCH = 1 include erlang.mk A language test suite will soon be added with a test for this.
2018-11-30Correct expanding of shell variables in autopatchLoïc Hoguin
The $(...) form was improperly converted. In addition it must be changed into a $(shell ...) form.
2018-11-30Add rebar3 hex package definenevar
2018-11-30Add autopatch for LFE projectsLoïc Hoguin
Currently experimental. It'll enable lfe.mk when it encounters the rebar3 plugin lfe-compile. Tested against some small library. Note that it adds lfe as a build dependency with no version given so the latest master will be fetched right now. This can be overriden in the parent project.
2018-11-29Ignore rebar3 plugins for the time beingLoïc Hoguin
Until it is found that one is needed to compile a project.
2018-11-29Add the target help-plugins to document external pluginsLoïc Hoguin
It's better than extending help:: because this gets printed at the end instead of before Erlang.mk's own help.
2018-11-28Call git describe for {vsn,git} during autopatchLoïc Hoguin
2018-11-28Fix asn1 compilation with the +maps optionLoïc Hoguin
When this option is used no include file is generated. Therefore don't error out if no include file can be found.
2018-11-28Modernize the protobuffs pluginLoïc Hoguin
2018-11-27Don't use the non-portable flock -c, use flock sh -cLoïc Hoguin
2018-11-27Fix jobserver unavailable warningsLoïc Hoguin
When the $(MAKE) is inside an $(eval $(call ...)) then it needs to be escaped as $$(MAKE). When the $(MAKE) is inside a $(call ...) then I did not figure out a way other than passing it as an argument. When the $(MAKE) is inside many levels of $(call $(call ...)) it's easier to avoid it if at all possible, so I replaced the rebar $(MAKE) call with ./bootstrap. I confirmed it works fine on Windows as well.
2018-11-26Rename render_template to core_render and move into coreLoïc Hoguin
Also remove the last instance of an "eval export" that pollutes the environment and use the new core_render for it instead. core_render does not include $(verbose) as this needs to be different depending on who calls it. It's now set explicitly everywhere required.
2018-11-26Use flock/lockf when available to avoid a -j issueLoïc Hoguin
Fetching rebar is conditional depending on the project being built, and if two projects require it and -j is used this could mean the fetching happens at the same time and one would fail.
2018-11-25Build issues testing multi-apps projectsLoïc Hoguin
I've reworked how the multi-apps projects are built. In particular I've made sure the test build is made from the top-level once, and then only tests are run on this build. It used to build multiple times and some builds would not include test mode, not good. I've also fixed issues with running tests in parallel. All tests now pass with -j8 on my machine. It's possible more issues remain that are not covered by tests yet though.
2018-11-25Build $(PROJECT).d in a separate $(MAKE) callLoïc Hoguin
This avoids the issue where clean will remove a file that was otherwise generated and won't be regenerated. This might also help with parallel building.
2018-11-24Add the git-subfolder fetch methodLoïc Hoguin
It clones and checkouts like the git fetch method, but does so in the Erlang.mk temporary directory. It then creates a symbolic link to the subfolder for the dependency.
2018-11-24Add a warning to not edit env.mkLoïc Hoguin
2018-11-23Ensure apps eunit tests only run once when called directlyLoïc Hoguin
2018-11-23Reorder the test-dir options to make it more like compile_erlLoïc Hoguin
2018-09-12Append -native to ERLANG_HIPE installationsLoïc Hoguin
2018-09-12Prevent kerl from being deleted uncorrectlyLoïc Hoguin
2018-08-01Filter out the old OTP versions from LATEST_ERLANG_OTPLoïc Hoguin
2018-06-27Add a missing IS_DEPS=1 for docs depsLoïc Hoguin
2018-06-21Add the version fetched to the DEP lineLoïc Hoguin
Also add a missing space character.
2018-05-15Don't use release candidates when LATEST_ERLANG_OTP=12018.05.15Loïc Hoguin
2018-05-14Display the version fetched of dependenciesLoïc Hoguin
It's cheap, can be useful to detect issues, so why not?
2018-05-14Small tweaks to previous PRLoïc Hoguin
2018-05-14Update to support WindowsStanislav Ovchar
2018-05-14Update makedep.erl to ignore hrl loopsStanislav Ovchar
2018-05-14Fix #757: recompile erl if hrl from another app was updatedStanislav Ovchar
2018-05-07Escape double quotes when passing ERLC_OPTS during testsLoïc Hoguin
2018-05-02Add LATEST_ERLANG_OTP=1 to automatically select the latest buildLoïc Hoguin
I need this for CI because I want to run Dialyzer only against the most recent OTP after tests have passed everywhere. Left undocumented for now. [ci skip]
2018-04-25Fix rebar pre_hooks patchSerhii Kostiushkin
2018-03-14Speed up the git clone download by using shallow downloads.Andreas Krüger
2018-03-05Fetch the version from rebar.lock if not specified in rebar.config2018.03.05Loïc Hoguin
This fixes hackney.