Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 42 lines (31 sloc) 1.238 kb
0d57d80c » bcui6611
2012-07-10 MB-5821: Add bdist target for source tarball
1 TMP_DIR = ./tmp
2 TMP_VER = $(TMP_DIR)/version_num.tmp
3
9a0d352d » bcui6611
2012-06-15 MB-5413: Copy all dependencies to python library
4 COUCHBASE_PYTHON_CLIENT = ../couchbase-python-client/couchbase \
5 ../couchbase-python-client/httplib2 \
6 ../couchbase-python-client/simplejson \
7 ../couchbase-python-client/uuid.py
40eb4730 » bcui6611
2011-12-09 Prepare makefile to build workload-generator
8
9 default:
10
11 pythonlibdir=$(libdir)/python
12
b4807ae1 » bcui6611
2011-12-16 Rename to cbworkloadgen
13 pythonlib_SCRIPTS= cbworkloadgen
40eb4730 » bcui6611
2011-12-09 Prepare makefile to build workload-generator
14
b4807ae1 » bcui6611
2011-12-16 Rename to cbworkloadgen
15 PYTHON_TOOLS= wrapper/cbworkloadgen
40eb4730 » bcui6611
2011-12-09 Prepare makefile to build workload-generator
16
17 ${PYTHON_TOOLS}: wrapper/wrapper
18 cp $< $@
19
20 CLEANFILES = ${PYTHON_TOOLS}
21 bin_SCRIPTS = ${PYTHON_TOOLS}
22
23 EXTRA_DIST = $(pythonlib_SCRIPTS)
24
25 install-data-hook:
9a0d352d » bcui6611
2012-06-15 MB-5413: Copy all dependencies to python library
26 cp -rf $(COUCHBASE_PYTHON_CLIENT) $(pythonlibdir)
40eb4730 » bcui6611
2011-12-09 Prepare makefile to build workload-generator
27
0d57d80c » bcui6611
2012-07-10 MB-5821: Add bdist target for source tarball
28 clean-local:
29 rm -f workload-generator*tar.gz
30 rm -rf $(TMP_DIR)
31
32 bdist:
33 test -d $(TMP_DIR) || mkdir $(TMP_DIR)
34 git describe | sed s/-/_/g > $(TMP_VER)
35 rm -f ./workload-generator_*.tar.gz
36 rm -rf $(TMP_DIR)/cbworkloadgen
37 mkdir -p $(TMP_DIR)/workload-generator
38 cp -rf $(COUCHBASE_PYTHON_CLIENT) $(TMP_DIR)/workload-generator
39 cp $(pythonlib_SCRIPTS) $(TMP_DIR)/workload-generator
40 (cd $(TMP_DIR); tar cf - workload-generator) | gzip -9 > workload-generator_`cat $(TMP_VER)`-`uname -s`.`uname -m`.tar.gz
41 echo created workload-generator_`cat $(TMP_VER)`-`uname -s`.`uname -m`.tar.gz
42 rm -rf $(TMP_DIR)
Something went wrong with that request. Please try again.