diff options
author | Vlad Ionescu <vlad@lshift.net> | 2009-09-01 16:43:39 +0100 |
---|---|---|
committer | Vlad Ionescu <vlad@lshift.net> | 2009-09-01 16:43:39 +0100 |
commit | f43ab8b2fa61d4e1fd98fd0a57b81a119ec9f65a (patch) | |
tree | 6252e64377f1fbf7a72cf4e1fc946a34025b8a2d | |
parent | e35b2a8ee0bcd96da45cbc0d6c66c5903d5cece8 (diff) | |
download | rabbitmq-server-f43ab8b2fa61d4e1fd98fd0a57b81a119ec9f65a.tar.gz |
checking if required applications exist in specified ERL_HOME
-rw-r--r-- | Makefile | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -99,8 +99,13 @@ $(PLT): $(BEAM_TARGETS) fi $(BASIC_PLT): $(ERL_HOME) - -dialyzer --plt $@ --build_plt -r \ - $(shell bash -c "ls -d $(ERL_HOME)/lib/{stdlib,kernel,mnesia,os_mon,ssl,eunit,tools,sasl}-*/ebin") + OTP_APPS='$(shell bash -c "ls -d $(ERL_HOME)/lib/{stdlib,kernel,mnesia,os_mon,ssl,eunit,tools,sasl}-*/ebin")'; \ + if [ ! "$$OTP_APPS" ]; then \ + echo "Did not find required OTP applications. Check ERL_HOME variable." && \ + false; \ + else \ + dialyzer --plt $@ --build_plt -r $$OTP_APPS || true; \ + fi clean: rm -f $(EBIN_DIR)/*.beam |