aboutsummaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)Author
2017-04-25Stylistic changes to makedep tests2017.04.25Loïc Hoguin
2017-04-25core/erlc.mk: added src subfolders support in makedep.erlOleksiy Kebkal
2017-04-25Improve the newly added testLoïc Hoguin
2017-04-25Accumulate eunit failures in multi-appsStanislav Ovchar
2017-04-25compile apps in the right order by looking at their LOCAL_DEPSJeffrey Griffin
we also use LOCAL_DEPS at the top-level, if it exists, to determine which local apps to compile, in the interest of saving compile time for projects that have many apps and multiple release configurations
2017-04-25fix removing deps.log at toplevel when in a multi-app layoutJeffrey Griffin
`rm deps.log` was not being executed, because of 1) the ifeq around it, checking for an empty ALL_DEPS_DIRS, which i believe was a logical error; and 2) deps depended on apps, which means apps were compiled before its recipe was executed, and the `rm deps.log` would be executed after it had been written to by recursive make of the apps. the important reason to remove deps.log is so that dependencies get remade when they change. otherwise you'll get mysterious errors about missing dependencies if they need to be rebuilt, or worse, have wrong stale beam files bundled in your release. tests core-deps-apps and core-deps-apps-only now manually clean the cowlib dep and rebuild at the top-level to make sure cowlib gets rebuilt. both tests indeed fail without this fix. this attempts to fix #1 by removing the ifeq, and #2 by having deps and apps depend on deps.log, with deps.log 'built' (but actually removed) by a double-colon rule with no prerequisites (which means its recipe always be run).
2017-04-25Use $(if) instead of ifeq and add a test for RELX_TAR=0Loïc Hoguin
2017-04-25Make tar-ball generation optional with relxStefan Hellkvist
2017-04-25build.config: Move erlydtl to run laterPhilip Cristiano
Run erlydtl after compilation of project src. This accommodates erlydtl configs that include custom modules.
2017-04-19Move external plugin loading at the end of erlang.mkLoïc Hoguin
This allows all plugins to append to existing variables and makes it easier to augment the functionality of the core plugins.
2017-04-10Only makedep and build asn1/xrl/mib files when necessaryLoïc Hoguin
Because we were unconditionally including the makedep file, it would be built even if the target was unrelated (like "make help"), and it would also trigger building of xrl and other files that produce Erlang code. Instead the makedep file is now included as a wildcard: if it exists it gets included, if it doesn't it's not, and if it's created in the middle of execution it gets included only then. More details on the technique can be found at http://make.mad-scientist.net/papers/advanced-auto-dependency-generation/ A test has been added to make sure the behavior does not come back at a later time.
2017-02-08Fix Archlinux Installation Instructionsderwinlu
Suggesting -Sy is a terrible idea[1]. This commit replaces it with -S which is the default on how packages should be added on Archlinux. Resolves #662. [1]: https://bbs.archlinux.org/viewtopic.php?id=89328
2017-01-12Set ASN.1 compilation options using ERLC_ASN1_OPTS2017.01.12Klas Johansson
`ERLC_ASN1_OPTS` can be used to pass compiler options when compiling ASN.1 files. By default, Erlang.mk will leave this empty, but it can be redefined in a Makefile.
2017-01-12plugins/syntastic.mk: New plugin to pass build options to SyntasticJean-Sébastien Pédron
Syntastic, an Erlang syntax checker plugin for Vim, uses the Erlang compile application to get compilation errors and warnings. Therefore it needs cooperation from the build system to get the appropriate compile flags. Currently it supports Rebar by parsing the configuration file. To add support for Erlang.mk, we need new Make targets to return the compile flags. This plugin adds three targets: o make show-ERL_LIBS o make show-ERLC_OPTS o make show-TEST_ERLC_OPTS Separate patches for Syntastic's builtin checker and syntaxerl are ready: they simply run those targets and parse the output.
2016-12-19core/erlc.mk: Quote application name in .appJean-Sébastien Pédron
2016-12-19plugins/escript.mk: Remove $(ESCRIPT_FILE) in distclean-escriptJean-Sébastien Pédron
... not $(ESCRIPT_NAME), which can be set to another value. While here, add a testcase for `make distclean`.
2016-12-02Make asciideck a little more verbose2016.12.08Loïc Hoguin
2016-11-29Give ebin paths when creating the PLTLoïc Hoguin
Before we had Dialyzer look for BEAM files in every subfolders of every deps. This resulted in the PLT bundling extra files and/or Dialyzer failing because some of them are not built with +debug_info, or because there are duplicates (in test logs for example). Now Dialyzer will only look in ebin/.
2016-11-26Add CT_LOGS_DIRnevar
2016-11-25Makefile: Set LC_COLLATE=C when building erlang.mkJean-Sébastien Pédron
When the index files are concatenated, (`index/*` in `build.config`), their order is related to the collation locale used by the shell. By explicitely setting this to the C locale, we make sure that the order is consistent, no matter the user's locale. It is especially useful in teams where users and systems have different locales.
2016-11-20Only delete ebin when fetching Erlang.mk projectsLoïc Hoguin
Erlang.mk projects either have a .app.src, or just the Makefile with an optional .app file for compatibility.
2016-11-20Better .app autopatch handlingLoïc Hoguin
If we have a .app and a .app.src we delete the .app. If we have a Rebar project with a .app file, rename it to .app.src and continue with autopatch. If we have a non-Rebar project, leave the .app file, and then... For all cases, delete the ebin/ folder after autopatch completes.
2016-11-19Don't autopatch if rebar is mentioned in commentsLoïc Hoguin
2016-11-04Rename CI_HIPE_LLVM to CI_ERLLVMLoïc Hoguin
Official name after all.
2016-11-03Clarify gmake commands on FreeBSD/HomebrewLoïc Hoguin
[ci skip]
2016-11-03Fix missing commaLoïc Hoguin
Oops! [ci skip]
2016-11-03Add experimental ErLLVM support in CILoïc Hoguin
The VM used to test LLVM built code is the --enable-native-libs one.
2016-11-03Add experimental HiPE support in CI2016.11.03Loïc Hoguin
2016-11-01Test asciidoc with more than one man sectionLoïc Hoguin
2016-11-01We need Asciideck to generate docs nowLoïc Hoguin
[ci-skip]
2016-11-01Document ESCRIPT_ZIP=zip and Ubuntu's p7zip-fullLoïc Hoguin
[ci-skip]
2016-10-31Switch asciidoc-manual to using AsciideckLoïc Hoguin
This is a start for moving from Python's Asciidoc to the Erlang implementation. Please report any issue with this change, I will fix everything at lightning speed!
2016-10-31Add package asciideck to the indexLoïc Hoguin
2016-10-31Fix a missing file warningLoïc Hoguin
2016-10-30Fix running Dialyzer on apps/* when they have depsLoïc Hoguin
2016-10-30Greatly improve the escript supportLoïc Hoguin
The plugin can now easily generate escripts as complex as relx or rebar/rebar3. It generates a proper structure and allows embedding extra files by extending the escript-zip target. Documentation and tests have been added.
2016-10-30Use := instead of = for list of filesLoïc Hoguin
This will make sure we don't look twice. Also make a single call to find the common file formats rather than many calls.
2016-10-30Properly convert DTL files path on Windows/MSYS2Loïc Hoguin
2016-10-29Remove appveyor/circleci filesLoïc Hoguin
2016-10-29Small tweak to make it easier for me to notice test failuresLoïc Hoguin
2016-10-29Fix broken test on OSXLoïc Hoguin
2016-10-29Add chapter about self-extracting releasesLoïc Hoguin
[ci-skip]
2016-10-29Make the sfx plugin use the tarball from RelxLoïc Hoguin
Plus small tweaks.
2016-10-29Revert change to erlang.mk fileLoïc Hoguin
My bad. Removing the .gitattributes file which lead me to make this error.
2016-10-28Make the relx tests work on FreeBSD/OSXLoïc Hoguin
2016-10-28Add "make relup"Loïc Hoguin
The initial documentation is a bit rough. It's getting late and I'd like to have this in sooner rather than later. :-)
2016-10-28Tweak Relx testsLoïc Hoguin
2016-10-28Add sasl and runtime_tools to the default relx.configLoïc Hoguin
2016-10-28Set PROJECT_VERSION to 0.1.0 in templatesLoïc Hoguin
Makes more sense than 0.0.1.
2016-10-28add tests for relx pluginderwinlu
* relx-rel + check that relx gets downloaded when relx.config exists, + check structure of built release + check that _rel directory does not get delete by 'make clean' * relx-run + build a simple release, check if it starts and stops normally * relx-rel-tar + check if RELX_OPTS are respected via supplying the 'tar' target * relx-distclean-relx + check that relx executable gets deleted * relx-distclean-relx-rel + check that _rel directory gets deleted * relx-relup + check if relup generation is possible and generated relup is working add sleeps after calls to async actions of the relx boot script