PageRenderTime 10ms CodeModel.GetById 2ms app.highlight 5ms RepoModel.GetById 1ms app.codeStats 1ms

/client-libraries/erlang/Makefile

http://redis.googlecode.com/
Makefile | 29 lines | 23 code | 6 blank | 0 comment | 2 complexity | c3e7a5cc4f598d9569e4767ebbce534d MD5 | raw file
 1LIBDIR=`erl -eval 'io:format("~s~n", [code:lib_dir()])' -s init stop -noshell`
 2
 3all:
 4	mkdir -p ebin/
 5	(cd src;$(MAKE))
 6	(cd test;$(MAKE))
 7
 8clean: clean_tests
 9	(cd src;$(MAKE) clean)
10	rm -rf erl_crash.dump *.beam
11
12clean_tests:
13	(cd test;$(MAKE) clean)
14	rm -rf erl_crash.dump *.beam	
15
16test: clean
17	mkdir -p ebin/
18	(cd src;$(MAKE))
19	(cd test;$(MAKE))
20	(cd test;$(MAKE) test)
21
22testrun: all
23	mkdir -p ebin/
24	(cd test;$(MAKE) test)
25
26install: 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