summaryrefslogtreecommitdiff
path: root/packaging/generic-unix/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'packaging/generic-unix/Makefile')
-rw-r--r--packaging/generic-unix/Makefile25
1 files changed, 25 insertions, 0 deletions
diff --git a/packaging/generic-unix/Makefile b/packaging/generic-unix/Makefile
new file mode 100644
index 00000000..13257522
--- /dev/null
+++ b/packaging/generic-unix/Makefile
@@ -0,0 +1,25 @@
+VERSION=0.0.0
+SOURCE_DIR=rabbitmq-server-$(VERSION)
+TARGET_DIR=rabbitmq_server-$(VERSION)
+TARGET_TARBALL=rabbitmq-server-generic-unix-$(VERSION)
+
+dist:
+ make -C ../.. VERSION=$(VERSION) srcdist
+ tar -zxvf ../../dist/$(SOURCE_DIR).tar.gz
+
+ mkdir $(TARGET_DIR)
+ mkdir $(TARGET_DIR)/sbin
+ make -C $(SOURCE_DIR) \
+ TARGET_DIR=`pwd`/$(TARGET_DIR) \
+ SBIN_DIR=`pwd`/$(TARGET_DIR)/sbin \
+ install
+
+ 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)