Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Got the basic app compiling

  • Loading branch information...
commit 42b4d1b1ed6854a5ec15e989c825b63a6605b6f3 1 parent f4149cd
@dparnell authored
View
2  .gitignore
@@ -0,0 +1,2 @@
+erl_crash.dump
+.DS_Store
View
1  Emakefile
@@ -0,0 +1 @@
+{"src/*", [debug_info, {outdir, "ebin"}, {i, "include"}]}.
View
9 Makefile
@@ -0,0 +1,9 @@
+all: compile
+
+compile:
+ erlc -o ebin +debug_info erl_make.erl
+ erl -pa ./ebin -eval "erl_make:make(development)" -s init stop -noshell
+
+clean:
+ rm ebin/*.beam
+
View
10 README
@@ -1,10 +0,0 @@
-This is a simple template for an OTP application
-
-Compiling:
-erlc -o ebin src/*.erl
-
-Running:
-erl -pa ebin
-application:start(myapp).
-myapp_server:test_call("Call").
-myapp_server:test_cast("Cast").
View
19 README.md
@@ -0,0 +1,19 @@
+What is this?
+=============
+
+This is a simple template for an OTP application. It is based on one found [here](https://github.com/zpeters/ErlangOtpTemplate) and some information on [StackOverflow](http://stackoverflow.com/questions/1582818/what-tool-do-you-use-to-build-an-erlang-program).
+
+Compiling
+---------
+
+ make
+
+Running
+-------
+
+ erl -pa ebin
+ application:start(myapp).
+ myapp_server:test_call("Call").
+ myapp_server:test_cast("Cast").
+
+
View
1  ebin/.gitignore
@@ -0,0 +1 @@
+*.beam
View
11 erl_make.erl
@@ -0,0 +1,11 @@
+-module(erl_make).
+
+-export([make/1]).
+
+make(Mode) ->
+ case make:all([{d, Mode}]) of
+ error ->
+ error;
+ _ ->
+ test_suite:test()
+ end.
View
10 src/test_suite.erl
@@ -0,0 +1,10 @@
+-module(test_suite).
+
+-author("michael@mullistechnologies.com").
+
+-include_lib("eunit/include/eunit.hrl").
+
+all_test_() ->
+ [
+%% {module, action_animate_test}
+ ].
Please sign in to comment.
Something went wrong with that request. Please try again.