Skip to content
Newer
Older
100755 35 lines (26 sloc) 627 Bytes
b2e3534 @evanmiller * Added unit test suite covering most tags that don't require file IO…
evanmiller authored
1 ERL=erl
48b9b5f @gardenia Added "now" tag and associated associated dateformat module.
gardenia authored
2 ERLC=erlc
f84b2a8 @rsaccon initial commit
rsaccon authored
3
48b9b5f @gardenia Added "now" tag and associated associated dateformat module.
gardenia authored
4 PARSER=src/erlydtl/erlydtl_parser
55405b9 @evanmiller .app file. Thanks to seth.
evanmiller authored
5 APP=erlydtl.app
48b9b5f @gardenia Added "now" tag and associated associated dateformat module.
gardenia authored
6
55405b9 @evanmiller .app file. Thanks to seth.
evanmiller authored
7 all: $(PARSER).erl ebin/$(APP)
48fea22 Implement "trans" tag with support for .po files
Evan Miller authored
8 -mkdir -p ebintest
27cac56 @rsaccon added optional "OutDir" argument to compile command
rsaccon authored
9 $(ERL) -make
f84b2a8 @rsaccon initial commit
rsaccon authored
10
55405b9 @evanmiller .app file. Thanks to seth.
evanmiller authored
11 ebin/$(APP): src/erlydtl/$(APP)
ed0f441 @evanmiller Adding some EDoc, and getting rid of a Make-time warning
evanmiller authored
12 -mkdir -p ebin
55405b9 @evanmiller .app file. Thanks to seth.
evanmiller authored
13 cp $< $@
14
48b9b5f @gardenia Added "now" tag and associated associated dateformat module.
gardenia authored
15 $(PARSER).erl: $(PARSER).yrl
16 $(ERLC) -o src/erlydtl src/erlydtl/erlydtl_parser.yrl
17
f84b2a8 @rsaccon initial commit
rsaccon authored
18 run:
48b9b5f @gardenia Added "now" tag and associated associated dateformat module.
gardenia authored
19 $(ERL) -pa ebin
20
b2e3534 @evanmiller * Added unit test suite covering most tags that don't require file IO…
evanmiller authored
21
22 test:
48fea22 Implement "trans" tag with support for .po files
Evan Miller authored
23 $(ERL) -noshell -pa ebin -pa ebintest \
7a2813e @evanmiller * Run functional tests from "make test"
evanmiller authored
24 -s erlydtl_functional_tests run_tests \
48b9b5f @gardenia Added "now" tag and associated associated dateformat module.
gardenia authored
25 -s erlydtl_dateformat_tests run_tests \
7a2813e @evanmiller * Run functional tests from "make test"
evanmiller authored
26 -s erlydtl_unittests run_tests \
48b9b5f @gardenia Added "now" tag and associated associated dateformat module.
gardenia authored
27 -s init stop
f84b2a8 @rsaccon initial commit
rsaccon authored
28
29 clean:
8bad98d @rsaccon server bugfixes
rsaccon authored
30 rm -fv ebin/*.beam
8a33fa2 @evanmiller Add crypto to list of application dependencies; "make clean" nukes eb…
evanmiller authored
31 rm -fv ebin/$(APP)
48fea22 Implement "trans" tag with support for .po files
Evan Miller authored
32 rm -fv ebintest/*
48b9b5f @gardenia Added "now" tag and associated associated dateformat module.
gardenia authored
33 rm -fv erl_crash.dump $(PARSER).erl
a3fdcf0 @evanmiller New filter: truncatewords
evanmiller authored
34 rm -fv examples/rendered_output/*
Something went wrong with that request. Please try again.