summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVlad Ionescu <vlad@lshift.net>2009-09-01 16:43:39 +0100
committerVlad Ionescu <vlad@lshift.net>2009-09-01 16:43:39 +0100
commitf43ab8b2fa61d4e1fd98fd0a57b81a119ec9f65a (patch)
tree6252e64377f1fbf7a72cf4e1fc946a34025b8a2d
parente35b2a8ee0bcd96da45cbc0d6c66c5903d5cece8 (diff)
downloadrabbitmq-server-f43ab8b2fa61d4e1fd98fd0a57b81a119ec9f65a.tar.gz
checking if required applications exist in specified ERL_HOME
-rw-r--r--Makefile9
1 files changed, 7 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index db8854ce..4032d6b2 100644
--- a/Makefile
+++ b/Makefile
@@ -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