summaryrefslogtreecommitdiffstats
path: root/articles/erlang.mk-and-relx/index.html
diff options
context:
space:
mode:
Diffstat (limited to 'articles/erlang.mk-and-relx/index.html')
-rw-r--r--articles/erlang.mk-and-relx/index.html34
1 files changed, 7 insertions, 27 deletions
diff --git a/articles/erlang.mk-and-relx/index.html b/articles/erlang.mk-and-relx/index.html
index b231fb97..65f881a8 100644
--- a/articles/erlang.mk-and-relx/index.html
+++ b/articles/erlang.mk-and-relx/index.html
@@ -74,40 +74,16 @@
<p><a href="https://github.com/extend/erlang.mk">Erlang.mk</a> solves the first step. It is an include file for GNU Make. Just including it in a Makefile is enough to allow building your project, fetching and building dependencies, building documentation, performing static analysis and more.</p>
<p><a href="https://github.com/erlware/relx">Relx</a> solves the second step. It is a release creation tool, wrapped into a single executable file. It doesn&apos;t require a configuration file. And if you do need one, it will be a pretty small one.</p>
<p>Let&apos;s take a look at the smallest Erlang.mk powered Makefile. There is only one thing required: defining the project name.</p>
-<div class="listingblock"><div class="content"><!-- Generator: GNU source-highlight 3.1.8
-by Lorenzo Bettini
-http://www.lorenzobettini.it
-http://www.gnu.org/software/src-highlite -->
-<pre><tt><font color="#009900">PROJECT =</font> my_project
-
-include erlang.mk</tt></pre>
+<div class="listingblock"><div class="content">source-highlight: could not find a language definition for make
</div></div>
<p>Simply doing this allows you to build your application by typing <code>make</code>, running tests using <code>make tests</code>, and more. It will even compile your <em>.dtl</em> files found in the <em>templates/</em> directory if you are using ErlyDTL!</p>
<p>Let&apos;s now take a look at a simplified version of the Makefile for this website. I only removed a few targets that were off-topic.</p>
-<div class="listingblock"><div class="content"><!-- Generator: GNU source-highlight 3.1.8
-by Lorenzo Bettini
-http://www.lorenzobettini.it
-http://www.gnu.org/software/src-highlite -->
-<pre><tt><font color="#009900">PROJECT =</font> ninenines
-
-<font color="#009900">DEPS =</font> cowboy erlydtl
-<font color="#009900">dep_cowboy_commit =</font> 0.8.5
-<font color="#009900">dep_erlydtl_commit =</font> 4d0dc8fb
-
-<b><font color="#000080">.PHONY:</font></b> release clean-release
-
-<font color="#990000">release:</font> clean-release all projects
- relx -o rel<font color="#990000">/</font><font color="#009900">$(PROJECT)</font>
-
-<font color="#990000">clean-release:</font> clean-projects
- rm -rf rel<font color="#990000">/</font><font color="#009900">$(PROJECT)</font>
-
-include erlang.mk</tt></pre>
+<div class="listingblock"><div class="content">source-highlight: could not find a language definition for make
</div></div>
<p>You can see here how to define dependencies. First you list all the dependency names, then you have one line per dependency, giving the repository URL and the commit number, tag or branch you want.</p>
<p>Then you can see two targets defined, with <code>release</code> becoming the default target, because it was defined first. You can override the default target <code>all</code>, which builds the application and its dependencies, this way.</p>
<p>And as you can see, the <code>release</code> target uses Relx to build a release into the <em>rel/ninenines/</em> directory. Let&apos;s take a look at the configuration file for this release.</p>
-<div class="listingblock"><div class="content"><!-- Generator: GNU source-highlight 3.1.8
+<div class="listingblock"><div class="content"><!-- Generator: GNU source-highlight 3.1.9
by Lorenzo Bettini
http://www.lorenzobettini.it
http://www.gnu.org/software/src-highlite -->
@@ -143,6 +119,10 @@ cowboy-0.8.5 erlydtl-0.7.0 ninenines-0.2.0 stdlib-1.19.1</pre></div></div>
+ <li><a href="https://ninenines.eu/articles/cowboy-2.7.0/">Cowboy 2.7</a></li>
+
+
+
<li><a href="https://ninenines.eu/articles/gun-2.0.0-pre.1/">Gun 2.0 pre-release 1</a></li>