Permalink
Browse files

Check rabbit.hrl for discrepancies with latest server header

  • Loading branch information...
1 parent 1cd8f56 commit 66dc9a7c320f8f111f02aba1a792212bb801e323 @tonyg committed Jun 5, 2010
Showing with 5 additions and 1 deletion.
  1. +5 −1 Makefile
View
@@ -4,6 +4,7 @@ DOC_DIR=doc
VERSION=0.0.1
EJABBERD_INCLUDE_DIR=/usr/lib/ejabberd/include
+CANONICAL_RABBIT_HEADER=../rabbitmq-server/include/rabbit.hrl
WIDTH=1024
#WIDTH=800
@@ -15,7 +16,10 @@ else
SED=sed
endif
-all: mod_rabbitmq.beam
+all: check_rabbit_hrl mod_rabbitmq.beam
+
+check_rabbit_hrl:
+ @if [ -e $(CANONICAL_RABBIT_HEADER) ]; then diff -q $(CANONICAL_RABBIT_HEADER) src/rabbit.hrl; else echo Skipping rabbit.hrl check because $(CANONICAL_RABBIT_HEADER) does not exist; fi
clean:
rm -f mod_rabbitmq.beam

0 comments on commit 66dc9a7

Please sign in to comment.