-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathMakefile
More file actions
39 lines (27 loc) · 764 Bytes
/
Makefile
File metadata and controls
39 lines (27 loc) · 764 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
ERL=erl
ERLC=erlc
ERLC_OPT=+debug_info -W -o ebin
all: src_src
clean_gen:
rm -f src/herml_scan.erl
rm -f src/herml_parse.erl
tests: clean src_src src_tests
${ERL} -pz ebin -pz ebin_tests -b start_sasl -noshell -s init stop -eval 'test_suite:test().'
ebin:
mkdir ebin
ebin_tests:
mkdir ebin_tests
special: src/herml_scan.erl src/herml_parse.erl
src_src: ebin src/herml_parse.erl src/herml.app
cd src;erl -make
src_tests: ebin_tests
cd tests;erl -make
src/herml.app: ebin
cp src/herml.app ebin
src/herml_scan.erl:
${ERL} -noshell -s init stop -eval 'leex:file("src/herml_scan.xrl")'
src/herml_parse.erl: src/herml_scan.erl
${ERL} -noshell -s init stop -eval 'yecc:file("src/herml_parse.yrl")'
clean: clean_gen
rm -f ebin/*
rm -f ebin_tests/*