Permalink
Browse files

initial commit

  • Loading branch information...
1 parent f4b818e commit 1dd6d81950eab9f4148417585f858506315a50d5 unknown committed Oct 23, 2010
View
@@ -0,0 +1,31 @@
+ERL = erl
+EBIN = ebin
+LIBDIR = $(shell erl -eval 'io:format("~s~n", [code:lib_dir()])' -s init stop -noshell)
+VERSION = $(shell cat VERSION | tr -d '\n')
+CFLAGS = -pa $(EBIN) -pa $(wildcard deps/*/ebin)
+CC = $(ERL) $(CFLAGS)
+APP_NAME=devroulette
+
+all: ebin compile
+boot: all make_boot
+start: boot
+ start_all
+
+compile:
+ @$(CC) -noinput +B -eval 'case make:all() of up_to_date -> halt(0); error -> halt(1) end.'
+
+edoc:
+ @echo Generating $(APP_NAME) documentation from srcs
+ @$(CC) -noinput -eval 'edoc:application($(APP_NAME), "./", [{doc, "doc/"}, {files, "src/"}])' -s erlang halt
+
+make_boot:
+ (cd $(EBIN); $(CC) -noshell -run make_boot write_scripts $(APP_NAME))
+
+start_all:
+ (cd ebin; $(CC) -noshell -sname $(APP_NAME) -boot $(APP_NAME))
+
+ebin:
+ @mkdir ebin
+
+clean:
+ rm -rf ebin/*.beam ebin/erl_crash.dump erl_crash.dump ebin/*.boot ebin/*.rel ebin/*.script doc/*.html doc/*.css doc/erlang.png doc/edoc-info
View
@@ -0,0 +1 @@
+*
View
@@ -1,3 +0,0 @@
-{application,devroulette}.
-{packages,[engine]}.
-{modules,['engine.dr_engine']}.
View
@@ -1,41 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
-<html>
-<head>
-<title>Module engine.dr_engine</title>
-<link rel="stylesheet" type="text/css" href="../stylesheet.css" title="EDoc">
-</head>
-<body bgcolor="white">
-<div class="navbar"><a name="#navbar_top"></a><table width="100%" border="0" cellspacing="0" cellpadding="2" summary="navigation bar"><tr><td><a href="overview-summary.html" target="overviewFrame">Overview</a></td><td><a href="http://www.erlang.org/"><img src="erlang.png" align="right" border="0" alt="erlang logo"></a></td></tr></table></div>
-<hr>
-
-<h1>Module engine.dr_engine</h1>
-<ul class="index"><li><a href="#description">Description</a></li><li><a href="#index">Function Index</a></li><li><a href="#functions">Function Details</a></li></ul>This is the main module of the DevRoulette engine.
-<p>Copyright © 2010 Pavlo Baron (GPL)</p>
-
-<p><b>Behaviours:</b> <a href="application.html"><tt>application</tt></a>.</p>
-<p><b>Authors:</b> Pavlo Baron (<a href="mailto:pb@pbit.org"><tt>pb@pbit.org</tt></a>).</p>
-
-<h2><a name="description">Description</a></h2>This is the main module of the DevRoulette engine.
- It starts the main supervisor and does all the wiring of the managing components
-<h2><a name="index">Function Index</a></h2>
-<table width="100%" border="1" cellspacing="0" cellpadding="2" summary="function index"><tr><td valign="top"><a href="#start-2">start/2</a></td><td></td></tr>
-<tr><td valign="top"><a href="#stop-1">stop/1</a></td><td></td></tr>
-</table>
-
-<h2><a name="functions">Function Details</a></h2>
-
-<h3 class="function"><a name="start-2">start/2</a></h3>
-<div class="spec">
-<p><tt>start(Type, Args) -&gt; any()</tt></p>
-</div>
-
-<h3 class="function"><a name="stop-1">stop/1</a></h3>
-<div class="spec">
-<p><tt>stop(State) -&gt; any()</tt></p>
-</div>
-<hr>
-
-<div class="navbar"><a name="#navbar_bottom"></a><table width="100%" border="0" cellspacing="0" cellpadding="2" summary="navigation bar"><tr><td><a href="overview-summary.html" target="overviewFrame">Overview</a></td><td><a href="http://www.erlang.org/"><img src="erlang.png" align="right" border="0" alt="erlang logo"></a></td></tr></table></div>
-<p><i>Generated by EDoc, Oct 23 2010, 10:48:00.</i></p>
-</body>
-</html>
@@ -1,10 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
-<html>
-<head>
-<title>Package engine</title>
-<link rel="stylesheet" type="text/css" href="../stylesheet.css" title="EDoc">
-</head>
-<body bgcolor="white">
-<h1>Package engine</h1>
-</body>
-</html>
View
Deleted file not rendered
View
@@ -1,17 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
-<html>
-<head>
-<title>The devroulette application</title>
-</head>
-<frameset cols="20%,80%">
-<frame src="modules-frame.html" name="modulesFrame" title="">
-
-<frame src="overview-summary.html" name="overviewFrame" title="">
-<noframes>
-<h2>This page uses frames</h2>
-<p>Your browser does not accept frames.
-<br>You should go to the <a href="overview-summary.html">non-frame version</a> instead.
-</p>
-</noframes>
-</frameset>
-</html>
View
@@ -1,12 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
-<html>
-<head>
-<title>The devroulette application</title>
-<link rel="stylesheet" type="text/css" href="stylesheet.css" title="EDoc">
-</head>
-<body bgcolor="white">
-<h2 class="indextitle">Modules</h2>
-<table width="100%" border="0" summary="list of modules">
-<tr><td><a href="engine/dr_engine.html" target="overviewFrame" class="module">engine.dr_engine</a></td></tr></table>
-</body>
-</html>
View
@@ -1,15 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
-<html>
-<head>
-<title>The devroulette application</title>
-<link rel="stylesheet" type="text/css" href="stylesheet.css" title="EDoc">
-</head>
-<body bgcolor="white">
-<div class="navbar"><a name="#navbar_top"></a><table width="100%" border="0" cellspacing="0" cellpadding="2" summary="navigation bar"><tr><td><a href="overview-summary.html" target="overviewFrame">Overview</a></td><td><a href="http://www.erlang.org/"><img src="erlang.png" align="right" border="0" alt="erlang logo"></a></td></tr></table></div>
-<h1>The devroulette application</h1>
-
-<hr>
-<div class="navbar"><a name="#navbar_bottom"></a><table width="100%" border="0" cellspacing="0" cellpadding="2" summary="navigation bar"><tr><td><a href="overview-summary.html" target="overviewFrame">Overview</a></td><td><a href="http://www.erlang.org/"><img src="erlang.png" align="right" border="0" alt="erlang logo"></a></td></tr></table></div>
-<p><i>Generated by EDoc, Oct 23 2010, 10:48:00.</i></p>
-</body>
-</html>
View
@@ -1,12 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
-<html>
-<head>
-<title>The devroulette application</title>
-<link rel="stylesheet" type="text/css" href="stylesheet.css" title="EDoc">
-</head>
-<body bgcolor="white">
-<h2 class="indextitle">Packages</h2>
-<table width="100%" border="0" summary="list of packages">
-<tr><td><a href="engine/package-summary.html" target="overviewFrame" class="package">engine</a></td></tr></table>
-</body>
-</html>
View
@@ -1,55 +0,0 @@
-/* standard EDoc style sheet */
-body {
- font-family: Verdana, Arial, Helvetica, sans-serif;
- margin-left: .25in;
- margin-right: .2in;
- margin-top: 0.2in;
- margin-bottom: 0.2in;
- color: #000000;
- background-color: #ffffff;
-}
-h1,h2 {
- margin-left: -0.2in;
-}
-div.navbar {
- background-color: #add8e6;
- padding: 0.2em;
-}
-h2.indextitle {
- padding: 0.4em;
- background-color: #add8e6;
-}
-h3.function,h3.typedecl {
- background-color: #add8e6;
- padding-left: 1em;
-}
-div.spec {
- margin-left: 2em;
- background-color: #eeeeee;
-}
-a.module,a.package {
- text-decoration:none
-}
-a.module:hover,a.package:hover {
- background-color: #eeeeee;
-}
-ul.definitions {
- list-style-type: none;
-}
-ul.index {
- list-style-type: none;
- background-color: #eeeeee;
-}
-
-/*
- * Minor style tweaks
- */
-ul {
- list-style-type: square;
-}
-table {
- border-collapse: collapse;
-}
-td {
- padding: 3
-}

0 comments on commit 1dd6d81

Please sign in to comment.