Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
executable file 35 lines (25 sloc) 581 Bytes
ERL=erl
ERLC=erlc
PARSER=src/erlydtl/erlydtl_parser
APP=erlydtl.app
all: $(PARSER).erl ebin/$(APP)
$(ERL) -make
ebin/$(APP): src/erlydtl/$(APP)
-mkdir -p ebin
@cp src/erlydtl/erlydtl.app $@
$(PARSER).erl: $(PARSER).yrl
$(ERLC) -o src/erlydtl src/erlydtl/erlydtl_parser.yrl
ebin:
mkdir ebin
run:
$(ERL) -pa ebin
test:
$(ERL) -noshell -pa ebin \
-s erlydtl_functional_tests run_tests \
-s erlydtl_dateformat_tests run_tests \
-s erlydtl_unittests run_tests \
-s init stop
clean:
rm -fv ebin/*.beam
rm -fv ebin/$(APP)
rm -fv erl_crash.dump $(PARSER).erl
Something went wrong with that request. Please try again.