]> git.saurik.com Git - redis.git/blob - client-libraries/erlang/Makefile
Erlang client synched with Valentiono's repo
[redis.git] / client-libraries / erlang / Makefile
1 LIBDIR=`erl -eval 'io:format("~s~n", [code:lib_dir()])' -s init stop -noshell`
2
3 all:
4 mkdir -p ebin/
5 (cd src;$(MAKE))
6 (cd test;$(MAKE))
7
8 clean: clean_tests
9 (cd src;$(MAKE) clean)
10 rm -rf erl_crash.dump *.beam
11
12 clean_tests:
13 (cd test;$(MAKE) clean)
14 rm -rf erl_crash.dump *.beam
15
16 test: clean
17 mkdir -p ebin/
18 (cd src;$(MAKE))
19 (cd test;$(MAKE))
20 (cd test;$(MAKE) test)
21
22 testrun: all
23 mkdir -p ebin/
24 (cd test;$(MAKE) test)
25
26 install: all
27 mkdir -p ${LIBDIR}/erldis-0.0.1/{ebin,include}
28 for i in ebin/*.beam; do install $$i $(LIBDIR)/erldis-0.0.1/$$i ; done
29 for i in include/*.hrl; do install $$i $(LIBDIR)/erldis-0.0.1/$$i ; done