From 9292409f21393ec539cdf40720d26b43914f6018 Mon Sep 17 00:00:00 2001 From: benoitc Date: Sun, 3 Apr 2016 23:46:20 +0200 Subject: Add WITHOUT variable to exclude components on build This allows to ignore lines from the default build.config if needed. For example to not include packages run make WITHOUT=index --- doc/src/guide/getting_started.asciidoc | 11 +++++++++++ doc/src/guide/updating.asciidoc | 7 +++++++ 2 files changed, 18 insertions(+) (limited to 'doc') diff --git a/doc/src/guide/getting_started.asciidoc b/doc/src/guide/getting_started.asciidoc index ca1391d..5d7d804 100644 --- a/doc/src/guide/getting_started.asciidoc +++ b/doc/src/guide/getting_started.asciidoc @@ -78,6 +78,17 @@ to bootstrap. This operation is done only once. Consult the xref:updating[Updating Erlang.mk] chapter for more information. +[NOTE] +---- +By default the file contains a package index. To filter it, run the command +above with the `WITHOUT=index` argument. + +[source,bash] +$ make -f erlang.mk bootstrap WITHOUT=index + +This command will generate the file without the index. +---- + Of course, the generated project can now be compiled: [source,bash] diff --git a/doc/src/guide/updating.asciidoc b/doc/src/guide/updating.asciidoc index 61d913d..3c72749 100644 --- a/doc/src/guide/updating.asciidoc +++ b/doc/src/guide/updating.asciidoc @@ -61,3 +61,10 @@ You can also name the file differently or put it in a separate folder by modifying the value for `ERLANG_MK_BUILD_CONFIG`. You can also tell Erlang.mk to use a different temporary directory by changing the `ERLANG_MK_BUILD_DIR` variable. + +Alternatively you can filter out a plugin in the build config by using the +`WITHOUT` variable the first time you generate the file. For example this +commande will filter the index plugin: + +[source,bash] +$ make -f erlang.mk WITHOUT=index -- cgit v1.2.3