aboutsummaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)Author
2015-09-04Add test for recursive header dependency trackingLoïc Hoguin
2015-09-04Add test for header dependency trackingLoïc Hoguin
2015-09-03test: Add missing clean target dependencyLoïc Hoguin
2015-09-03Fix bug where intermediate files from .asn1 wouldn't get cleanedLoïc Hoguin
Dirty, dirty files!
2015-09-03Add a test for building .asn1 filesLoïc Hoguin
2015-09-03Add a test for ERLANG_MK_BUILD_DIRLoïc Hoguin
2015-09-03Improve upgrade testLoïc Hoguin
2015-09-03Add tests for upgrading Erlang.mkLoïc Hoguin
2015-09-03Add tests for the bootstrap pluginLoïc Hoguin
Adding tests in the order they are documented in the guide.
2015-09-03Add missing link to app.asciidoc in guide indexLoïc Hoguin
2015-09-03Generate `$(PROJECT).d` before calling `make app-build`Jean-Sébastien Pédron
This ensures all generated dependencies are prepared and the .d file is ready before the actual build is started.
2015-09-03Fix list of modules in the .app fileLoïc Hoguin
2015-09-03Improve the dependency trackingLoïc Hoguin
* Move the .app generation to the .app rule (don't remake it for no reasons when nothing needs to be done) * Rever the previous double colon commit; add touch $@ in depend * Move the creation of ebin/ directory in its own rule * Temporarily remove the ignore on missing depend file
2015-09-02Merge branch 'double-colon-for-source-files' of ↵Loïc Hoguin
https://github.com/rabbitmq/erlang.mk
2015-09-02Merge branch 'alt_build_config_name' of https://github.com/zerotao/erlang.mkLoïc Hoguin
2015-09-02Merge branch 'jacorro.update_elvis_0.2.5' of https://github.com/inaka/erlang.mkLoïc Hoguin
2015-09-02app.asciidoc: Document how to handle generated source filesJean-Sébastien Pédron
2015-09-02erlc.mk: Remove the target touching source filesJean-Sébastien Pédron
The touch(1) happens after `$(PROJECT).d` is generated. Therefore, with the next run of make, `$(PROJECT).d` is considered obsolete and recreated. Source files are touched again, and so on. This makes the whole project to be rebuilt with every run of make.
2015-09-02erlc.mk: Use double-colon targets for source files targetsJean-Sébastien Pédron
When files are generated, this avoids a warning because the target would be redefined.
2015-09-02Add dependency tracking (makedep)Loïc Hoguin
This is a very large change of a central part of Erlang.mk. I will admit that I am not quite confident on that one. If you do have issues following this change, please open a ticket and I will look at it immediately. At this point, it works for me, but I wouldn't be surprised to hear about a few minor issues. This commit introduces a dependency file $(PROJECT).d which contains Makefile rules between Erlang source files and headers, behaviors and parse_transforms. This allows us to rebuild only the files that are needed. The $(PROJECT).d is generated automatically when missing, and when any of the files change. It is possible to hook before and after this generation, by defining a $(PROJECT).d:: rule. This allows users to generate Erlang files which are then compiled by Erlang.mk automatically (and to track their dependencies, of course). Here goes nothing...
2015-09-02Replace core_find with native findLoïc Hoguin
Native find is much faster. As for future Windows work, this is no problem, as the retained solution involves using find.exe from GnuWin.
2015-09-02Disable concurrent building entirelyLoïc Hoguin
Two reasons for doing this: * The current solution for enforcing sequential operations makes a lot of things slower. Either we do it properly or we don't. * Most of Erlang.mk is sequential by nature. There is very little to gain from Make's own parallel building. Something more interesting would be to enable fetching of dependencies concurrently by other means, and enable compilation of Erlang files concurrently (requires patching OTP).
2015-09-01Update elvis to 0.2.5Juan Facorro
2015-08-27Add support for external pluginsLoïc Hoguin
Plugins can automatically be fetched and included from dependencies. All that is needed is to add either the dependency name or the name + path of the plugin to the DEP_PLUGINS variable. Useful for allowing tools to easily add support for new targets, adding templates or for putting the whole build ecosystem in one common dependency.
2015-08-27Add support for 'compile' step for pluginsLoïc Hoguin
Fixes riak_control generating JS files.
2015-08-27Remove a temporary fileLoïc Hoguin
2015-08-26Fix auto disabling of triq when not in depsLoïc Hoguin
We check the $(DEPS) and $(TEST_DEPS) variables now, instead of the directory directly, because triq won't be there yet on first build.
2015-08-26Improve the erlydtl pluginLoïc Hoguin
Among the improvements: * Work with current versions of ErlyDTL * Add DTL_PATH, defaulting to templates/ * Add DTL_SUFFIX, defaulting to _dtl (suffix of output module names) * Simplify the Erlang code and port to the erlang function The erlang function can now accept any command-line argument for erl as optional second argument.
2015-08-26Add package riak_control to the indexLoïc Hoguin
2015-08-22Add first three chapters of new documentationLoïc Hoguin
2015-08-18Fix build config renamingJason L. Shiffer
Currently build.config can be placed in a different directory via something like: ERLANG_MK_BUILD_CONFIG = tools/build.config but if the name is changed: ERLANG_MK_BUILD_CONFIG = .erlang-mk.config it will be ignored.
2015-08-16Merge branch 'xargs-darwin-find' of https://github.com/manifest/erlang.mkLoïc Hoguin
2015-08-16Update apt-get before trying to install autoconfLoïc Hoguin
Should fix errors with @CircleCI.
2015-08-16Improve dependency handlingLoïc Hoguin
This commit does a few things: * Fix svn and cp fetch methods * Resolve what commands to run for fetching directly in make * Make it easier to add fetch methods in the future * Move legacy fetching into its own method for compatibility * Don't require three words for hex; two are enough
2015-08-14Add test/pkgs.log as artifactLoïc Hoguin
2015-08-14Update edown in test MakefileLoïc Hoguin
2015-08-14Fix test Makefile on some platformsLoïc Hoguin
2015-08-14Fix a bug where modules were missing on first makeLoïc Hoguin
2015-07-27Attempt using CircleCI with erlang.mkLoïc Hoguin
2015-07-21Tweaks to the ci plugin after trying CircleCILoïc Hoguin
For best results use 'make -k ci'. 'make ci-prepare' can be used to setup the OTP installations needed.
2015-07-21Don't use warning_as_errors for erlang.mk-style depsLoïc Hoguin
Fix a bug where deps that use erlang.mk didn't have the -Werror option suppressed automatically.
2015-07-12The '-r' option of 'xargs' is illegal on OSXAndrei Nesterov
2015-07-06Add package syn to the indexLoïc Hoguin
2015-07-04Add $(verbose) to avoid completely silencing commandsLoïc Hoguin
2015-07-04Add package prop to the indexLoïc Hoguin
2015-07-04Add package gut to the indexLoïc Hoguin
2015-07-04Add package trails to the indexLoïc Hoguin
2015-07-04Allow changing template whitespaceLoïc Hoguin
By default templates use tabs. Unfortunately there are misguided heretics who prefer spaces. Bummer. Two variables are introduced: * SP=<number> can be set to use <number> spaces per indentation level. * WS=<string> can be set to use <string> for each indentation level. Most users will just want to use SP, for example: make new t=gen_server n=my_server SP=4 Note that people who want tabs don't have to do anything; tabs are still the default. WS is reserved for advanced users. Normal Make rules apply: all whitespaces are trimmed. To specify 4 spaces using WS, you can do the following: make new t=gen_server n=my_server WS='$(empty) $(empty)' Ugly, right? So just use SP. Finally, SP and WS can be put in your Makefile directly. In fact, erlang.mk will automatically add SP to a newly created project if it was used during creation. For example: make -f erlang.mk bootstrap SP=2 So in time we should only need to make a note in the docs at project creation time, as there is very little value after that point.
2015-07-03Add {ref, Commit} form for rebar3 depsLoïc Hoguin
Considering vmq_server is the first to use it, I suppose it's new. Oh well that's just yet another way to specify deps in rebar.config. :-)
2015-07-03Package barrel was renamed to barrel_tcp overnightLoïc Hoguin