|
@@ -2,7 +2,7 @@ ERL=erl
|
|
ERLC=erlc
|
|
ERLC=erlc
|
|
REBAR=./rebar $(REBAR_ARGS)
|
|
REBAR=./rebar $(REBAR_ARGS)
|
|
|
|
|
|
-all: compile
|
|
|
|
|
|
+all: compile tests
|
|
|
|
|
|
compile: check-slex get-deps
|
|
compile: check-slex get-deps
|
|
@$(REBAR) compile
|
|
@$(REBAR) compile
|
|
@@ -18,7 +18,7 @@ update-deps:
|
|
@$(REBAR) update-deps
|
|
@$(REBAR) update-deps
|
|
|
|
|
|
.PHONY: tests
|
|
.PHONY: tests
|
|
-tests:
|
|
|
|
|
|
+tests: src/erlydtl_parser.erl
|
|
@$(REBAR) eunit
|
|
@$(REBAR) eunit
|
|
|
|
|
|
check: tests dialyze
|
|
check: tests dialyze
|
|
@@ -55,3 +55,8 @@ slex-compile:
|
|
|
|
|
|
shell:
|
|
shell:
|
|
@$(ERL) -pz ebin deps/*/ebin
|
|
@$(ERL) -pz ebin deps/*/ebin
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+# this file must exist for rebar eunit to work
|
|
|
|
+# but is only built when running rebar compile
|
|
|
|
+src/erlydtl_parser.erl: compile
|