blob: 9014c3add843ff53e16dff83e05a2fe61b38d58f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
VERSION=0.0.0
SOURCE_DIR=rabbitmq-server-$(VERSION)
TARGET_DIR=rabbitmq_server-$(VERSION)
TARGET_TARBALL=rabbitmq-server-generic-unix-$(VERSION)
dist:
tar -zxf ../../dist/$(SOURCE_DIR).tar.gz
$(MAKE) -C $(SOURCE_DIR) \
TARGET_DIR=`pwd`/$(TARGET_DIR) \
SBIN_DIR=`pwd`/$(TARGET_DIR)/sbin \
MAN_DIR=`pwd`/$(TARGET_DIR)/share/man \
install
cp -f rabbitmq-sys $(TARGET_DIR)/sbin
chmod 0755 $(TARGET_DIR)/sbin/rabbitmq-sys
mkdir -p $(TARGET_DIR)/etc/rabbitmq
tar -zcf $(TARGET_TARBALL).tar.gz $(TARGET_DIR)
rm -rf $(SOURCE_DIR) $(TARGET_DIR)
clean: clean_partial
rm -f rabbitmq-server-generic-unix-*.tar.gz
clean_partial:
rm -rf $(SOURCE_DIR)
rm -rf $(TARGET_DIR)
|