aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
AgeCommit message (Collapse)Author
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-29Make the sfx plugin use the tarball from RelxLoïc Hoguin
Plus small tweaks.
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-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-28Use an intermediate timestamp file to know when to touch source filesJean-Sébastien Pédron
The previous approach spawned a shell for every single source files. As we disable parallel make jobs, this is very time consuming. The new approach uses an intermediate timestamp file in $(ERLANG_MK_TMP) to record the last modification of any of $(MAKEFILE_LIST) and touch all source files in one command. Then, the .app file depends on this timestamp file. We test the existence of this timestamp file: if if doesn't exist, don't touch source files, they will be built anyway. $(PROJECT).d now depends directly on $(MAKEFILE_LIST); before, this dependency was indirect through $(ERL_FILES). Also, once $(ERL_FILES) were touched, we do the same with $(PROJECT).d because there is no need to regen it because of this.
2016-10-26Better FreeBSD fixLoïc Hoguin
2016-10-26FreeBSD doesn't use tar -c with -OLoïc Hoguin
2016-10-26Add self-extracting/running archives for releasesLoïc Hoguin
This is a proof of concept at the moment. It only runs the release in 'console' mode at the moment. I am expecting users to want a mix of both self extracting (without removing when done) and self running (with removal when done) archives. There is currently no way to configure the behavior and so the files get deleted when the release terminates (self running use case). The SFX archive will only be created when the SFX variable is set (either in the Makefile or through the command-line). There are currently no documentation. Just "make SFX=1".
2016-10-25Use the ERLANG_MK_TMP variable in plugins/ci.mkLoïc Hoguin
2016-10-25Move relx to the temporary directoryLoïc Hoguin
2016-10-25Fetch kerl with --depth 1Loïc Hoguin
We always want the most recent version and only this.
2016-10-25Add KERL_MAKEFLAGS optionLoïc Hoguin
2016-10-25Fetch kerl using gitLoïc Hoguin
Safer than through insecure HTTPS.
2016-10-25Add ci-prepare to .PHONYLoïc Hoguin
2016-10-21Update Copyright notices2016.10.21Loïc Hoguin
2016-10-20Fix several problems with the erlydtl plugin:Jared Flatow
DTL_SUFFIX: - make sure it is actually used - add a test for it (and one combined with other options) DTL_PATH: - handle correctly with or without trailing / - don't hard-code the `doc_root` opt - the erlydtl default is better
2016-10-04Fix path issues when running triq tests on WindowsLoïc Hoguin
2016-10-04Fix a small inconsistency when building for CILoïc Hoguin
We need to clean before attempting to wildcard ebin/test. To do that, we need to invoke "make clean" separately.
2016-09-13Merge branch 'fix-dialyzer-ERLC_OPTS-filtering' of ↵Loïc Hoguin
https://github.com/rabbitmq/erlang.mk
2016-09-08dialyzer.mk: Use the shell to parse command line argsJean-Sébastien Pédron
Splitting arguments on `-` was dangerous: if a path contained such a character, it would be split and the second half thrown away by the filtering. Now, `$(ERLC_OPTS)` is passed to erl(1) after `-extra`. Thus arguments parsing is done by the shell and we only have to call init:get_plain_arguments/0 to get them as a list.
2016-09-08plugins/xref.mk: Fix typo in variable `XREFR_ARGS`Jean-Sébastien Pédron
2016-04-21Bump relx version to 3.19.0Hakan Nilsson
2016-04-05 Add fullpath to ebin/crownedgrouse
Allow eunit test to access to project's priv_dir.
2016-04-03Add possibility to specify custom ErlyDTL optionsKrzysztof Jurewicz
2016-03-19Merge branch 'cover_badarith_fix' of https://github.com/hdima/erlang.mkLoïc Hoguin
2016-03-19Merge branch 'add_tpl_empty' of https://github.com/ingwinlu/erlang.mkLoïc Hoguin
2016-03-19escript file maybe different from escript nameZaiming Shi
2016-03-19Merge branch 'multi_app_ct' of https://github.com/ingwinlu/erlang.mkLoïc Hoguin
2016-02-26Correct output of bootstrap help targetderwinlu
2016-02-17Add 'module' templatederwinlu
Every .erl source file will need at least a -module and a single -export definition. With the 'module' template a file can be quickly created that already populates -module with the right value as well as an empty export field.
2016-02-08Fix ct for multi-app repositoriesderwinlu
* Include $(APPS_DIR)/*/ebin in CT_RUN * test-build before ct-apps * Test that my_lib is accessible from my-app ct
2016-01-24Export CC on WindowsLoïc Hoguin
Considering we require this compiler, we should set a good default for all sub-Makefiles.
2016-01-22Allow running apps/ ct test suites in parallelLoïc Hoguin
I'm mostly trying to fix tests when ran in parallel, although this is also a nice optimization for those who use multi-app repositories.
2016-01-16Fix eunit not running if there are no beamsLoïc Hoguin
I'm not sure how to reproduce the issue some people experienced (OS, make version maybe? who knows) but I got a report that this fixes it. It's also definitely the "right" way to do this.
2016-01-09Add AsciiDoc tests and documentationLoïc Hoguin
Also fixes install-docs to allow installing regardless of being root or a normal user. The current user/group will be used for the installed files.
2016-01-09Test and document EDocLoïc Hoguin
A change was made to the automatic EDoc generation when running 'make docs'. It is now only done if a doc/overview.edoc file exists. This behavior can of course be enabled back by adding it to the Makefile.
2015-12-30List third party plugins; remove ElvisLoïc Hoguin
This is a breaking change for Elvis users, who should now use the external plugin available at https://github.com/inaka/elvis.mk
2015-12-29Add Common Test docs and testsLoïc Hoguin
Also fixes issues with multi application repositories, and add support for running a specific group/case in a given test suite.
2015-12-24Work around an auto completion bug with ZSHLoïc Hoguin
At the same time update the Makefile templates which were missing PROJECT_DESCRIPTION and PROJECT_VERSION fields.
2015-12-24Add EUNIT_ERL_OPTS variableLoïc Hoguin
2015-12-24Add EUnit tests and documentationLoïc Hoguin
Also includes a fix for multi-application repositories.
2015-12-15Fix parallel issues caused by ErlyDTLLoïc Hoguin
Issues were introduced by f58af72831338efba4d5e20898cf92c0ed9f1c0f. In addition some rework has been done: * We don't care about src/, only about templates/ * Fix a misplaced closing paren (why was it working before?) * Move most of the rules and defines inside the ifdef
2015-12-14Fix compilation of NIFs on WindowsLoïc Hoguin
Thanks to two users of the ninenines/esdl2 project, a correct way to build NIFs on Windows has been found. At the moment we require a specific compiler (MingW's gcc). Maybe we can change this in the future and allow Visual Studio and others. Some small changes have been made to the documentation, and the meaning of one configuration variable has changed to not include the extension (which is decided automatically by Erlang.mk; and configurable separately). Enjoy!
2015-12-04Create the ebin/ directory before compiling ErlyDTL templatesLoïc Hoguin
2015-12-01Test and document DialyzerLoïc Hoguin
One bug was fixed: now Erlang.mk will properly pass relevant ERLC_OPTS values to Dialyzer. One bug still exists when using multi-application repositories: dependencies are not detected automatically. We need list-deps before this can work.