Skip to content

Commit

Permalink
Use rebar for builds.
Browse files Browse the repository at this point in the history
  • Loading branch information
evanmiller committed Mar 20, 2011
1 parent fa28530 commit 45c9c57
Show file tree
Hide file tree
Showing 8 changed files with 20 additions and 42 deletions.
3 changes: 0 additions & 3 deletions Emakefile
@@ -1,4 +1 @@
{"src/*", [debug_info, {outdir, "ebin"}]}.
{"src/i18n/*", [debug_info, {outdir, "ebin"}]}.
{"src/filter_lib/*", [debug_info, {outdir, "ebin"}]}.
{"tests/src/*", [debug_info, {outdir, "ebintest"}]}.
22 changes: 8 additions & 14 deletions Makefile
@@ -1,23 +1,17 @@
ERL=erl
ERLC=erlc

PARSER=src/erlydtl_parser
REBAR=./rebar


all: compile

compile: $(PARSER).erl
compile:
@$(REBAR) compile

compile_test:
-mkdir -p ebintest
$(ERL) -make

$(PARSER).erl: $(PARSER).yrl
$(ERLC) -o src src/erlydtl_parser.yrl

run: compile
$(ERL) -pa ebin


test: compile
test: compile compile_test
$(ERL) -noshell -pa ebin -pa ebintest \
-s erlydtl_functional_tests run_tests \
-s erlydtl_dateformat_tests run_tests \
Expand All @@ -26,7 +20,7 @@ test: compile
-s init stop

clean:
rm -fv ebin/*.beam
@$(REBAR) clean
rm -fv ebintest/*
rm -fv erl_crash.dump $(PARSER).erl
rm -fv erl_crash.dump
rm -fv tests/output/*
25 changes: 0 additions & 25 deletions ebin/erlydtl.app

This file was deleted.

Binary file added rebar
Binary file not shown.
1 change: 1 addition & 0 deletions rebar.config
@@ -0,0 +1 @@
{erl_opts, [debug_info]}.
9 changes: 9 additions & 0 deletions src/erlydtl.app.src
@@ -0,0 +1,9 @@
%% -*- mode: erlang -*-
{application, erlydtl,
[{description, "ErlyDTL compiles the Django Template Language to Erlang bytecode"},
{vsn, "0.7.0"},
{modules, [
]},
{applications, [kernel, stdlib]},
{registered, []}
]}.
1 change: 1 addition & 0 deletions tests/input/ssi
@@ -0,0 +1 @@
{% ssi path %}
1 change: 1 addition & 0 deletions tests/input/ssi_include.html
@@ -0,0 +1 @@
{{ "Don't evaluate me!" }}

0 comments on commit 45c9c57

Please sign in to comment.