aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/bootstrap.mk
AgeCommit message (Collapse)Author
2022-05-23Hopefully more portable bootstrap-rel fixLoïc Hoguin
2022-05-23Better fix for inserting BUILD_DEPS += relxLoïc Hoguin
2022-05-23Automatically add relx dependency on bootstrap-relLoïc Hoguin
2022-04-27Upgrade to Relx 4 which is now used as a libraryLoïc Hoguin
2019-06-17Set locale to `C` when checking bootstrapped app nameJean-Sébastien Pédron
At least on FreeBSD, the `en_US.UTF-8` locale I use breaks the check. It might be a bug on FreeBSD because I don't understand why it would affect the behaviour of that simple regex. Nonetheless, let's override the locale to make sure this does not happen again.
2018-11-28Rename the rel/ directory to config/ by defaultLoïc Hoguin
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-26Fix propagation of SP in sub-appsLoïc Hoguin
And some refactor and additional testing for overriding. Turns out we can override some variables even if ?= is not used, so nothing had to be done to support overriding.
2018-11-24Disallow uppercase characters in application namesLoïc Hoguin
2018-11-24Error out on dash characters during bootstrapLoïc Hoguin
2018-11-23Allow overriding APPS_DIR/DEPS_DIR in appsLoïc Hoguin
2018-11-23Ensure apps have APPS_DIR and DEPS_DIR definedLoïc Hoguin
So they can use include files and other from other apps when they're built directly, and that they use the same deps directory.
2018-05-14list templates on seperate linesMads Flensted-Urech
2018-05-14Fix use of templates from plugins in apps layoutLoïc Hoguin
2018-04-25Add gen_statem templatejuhlig
[skip ci]
2017-04-27Add a test for plugin templates and fix an issue with themLoï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-21Update Copyright notices2016.10.21Loïc Hoguin
2016-03-19Merge branch 'add_tpl_empty' 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.
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-11-19Do not export templates as environment variablesJean-Sébastien Pédron
We can write the file using the Makefile variables without going through environment variables.
2015-10-19Fix creating modules from templates when using apps/ onlyLoïc Hoguin
2015-09-29Add support for APPS_DIRLoïc Hoguin
This changes adds Rebar-like "apps/" functionality. From this commit onward, Erlang.mk supports 4 types of repositories: - Repo with an Erlang app at root level + deps/ - Repo with an Erlang app at root level + apps/ deps/ - Repo with no app at root level + deps/ - Repo with no app at root level + apps/ deps/ Example usage: - make new-app in=webchat - make new t=gen_server n=my_chat in=webchat - make Replace new-app with new-lib to create an OTP library instead of an OTP application.
2015-09-18Test "no .app.src" by default, test legacy with LEGACY=1Loïc Hoguin
Also fixes two bugs with the new "no .app.src" method. All tests now pass with both methods. We can now test specific cases with make check c=$CASE.
2015-07-04Add $(verbose) to avoid completely silencing commandsLoï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-05-15Replace make with $(MAKE) for BSD compatibilityLoïc Hoguin
2015-05-09Merge branch 'improved_bootstrap' of https://github.com/andrzejsliwa/erlang.mkLoïc Hoguin
Changed the method to echo multiline variables into something that should work for everyone.
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.
2014-12-22Improve the gen_fsm templateLoïc Hoguin
* Rename and add the default state functions `state_name/2,3` * Rename the variable `State` into `StateData` as per documentation
2014-12-20Added a gen_fsm templateGraham Hay
2014-10-30erlc: update {id, git} in .app.src with git describe outputDave Cottlehuber
2014-09-24Fix for the cowboy_rest templateEric Sagnes
2014-08-15handling unescaped templatesAndrzej Sliwa
2014-08-02Fixed output of help commandUmbertoC
list-templates was replaced by bootstrap-lib in the output of the help command.
2014-07-31Add command-line help to the bootstrap pluginLoïc Hoguin
2014-07-30Add bootstrap pluginLoïc Hoguin