Permalink
Browse files

Moved erl files to 'src'. Added Makefile

  • Loading branch information...
1 parent 5bdc771 commit bda1ebfd8daa9303d773e4306ff2d1ca1b5db918 @zpeters committed Aug 18, 2010
Showing with 45 additions and 0 deletions.
  1. +6 −0 Emakefile
  2. +33 −0 Makefile
  3. +6 −0 src/boot.erl
  4. 0 { → src}/itty.erl
View
@@ -0,0 +1,6 @@
+% -*- mode: erlang -*-
+{["src/*"],
+ [{i, "include"},
+ {outdir, "ebin"},
+ debug_info]
+}.
View
@@ -0,0 +1,33 @@
+LIBDIR = `erl -eval 'io:format("~s~n", [code:lib_dir()])' -s init stop -noshell`
+APP = itty
+VERSION = 0.0.1
+CC = erlc
+ERL = erl
+EBIN = ebin
+CFLAGS = -I include -pa $(EBIN)
+COMPILE = $(CC) $(CFLAGS) -o $(EBIN)
+EBIN_DIRS = $(wildcard deps/*/ebin)
+
+all: ebin compile
+all_boot: all make_boot
+start: all start_all
+
+compile:
+ @$(ERL) -pa $(EBIN_DIRS) -noinput +B -eval 'case make:all() of up_to_date -> halt(0); error -> halt(1) end.'
+
+edoc:
+ @echo Generating $(APP) documentation from srcs
+ @erl -noinput -eval 'edoc:application($(APP), "./", [{doc, "doc/"}, {files, "src/"}, {todo, true}, {private, true}])' -s erlang halt
+
+shell:
+ make all
+ erl -sname console -pa ebin
+run:
+ make all
+ erl -pa ebin -run boot -run init stop -noshell
+
+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,6 @@
+-module(boot).
+
+-export([start/0]).
+
+start() ->
+ io:format("Booting...~n").
File renamed without changes.

0 comments on commit bda1ebf

Please sign in to comment.